<div class="gmail_quote">On Thu, Dec 17, 2009 at 2:03 PM, Nick Rout <span dir="ltr"><<a href="mailto:nick.rout@gmail.com">nick.rout@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, Dec 17, 2009 at 1:34 PM, Steve Hodge <<a href="mailto:stevehodge@gmail.com">stevehodge@gmail.com</a>> wrote:<br>
> On Thu, Dec 17, 2009 at 1:15 PM, Jonathan Hoskin <<a href="mailto:jonathan.hoskin@gmail.com">jonathan.hoskin@gmail.com</a>><br>
> wrote:<br>
>>><br>
>>> > Is there any way to cache the downloaded program data, rather than<br>
>>> > re-downloading it each time, even if it hasn't changed? I noticed the<br>
>>> > --cache option in the help, but how do I use that with myth?<br>
>>><br>
>>> Yeah unfortunately you can't currently. I implemented the cache<br>
>>> functionality as per the XMLTV spec but I don't think much uses it<br>
>>> currently.<br>
>><br>
>> How about dropping a Squid in front of the requesting machine to cache the<br>
>> response from Had's server? And then use a time-appropriate refresh_pattern<br>
>> directive for the URL in the Squid conf?<br>
>> I have an almost default deploy of Squid on a Ubuntu 9.10 server on my LAN<br>
>> and caching of the <a href="http://nice.net.nz" target="_blank">nice.net.nz</a> xml just works.<br>
><br>
> I don't think caching the entire file is what Robert's looking for. The<br>
> issue is that on any given day 80% of the file is likely to be unchanged<br>
> (assuming it contains approx. 5 days of data - only the newest day of<br>
> programs will be different). A squid setup is still going to download the<br>
> whole file each day, rather than just the 20% that's new.<br>
<br>
</div></div>Gee its a whole 1.2MB. Not going to break anyones bandwidth limit<br>
(except perhaps the server if its on a residential connection).<br>
<br>
Changes can appear anywhere in the data, not just the most recent days.<br></blockquote><div><br>Yep, those are the reasons why no one has done anything about it.<br><br>Cheers,<br>Steve <br></div></div><br>