I have been playing with this software for an afternoon now and was
wondering what im doing wrong.
From my logs i can see that squid is requesting a page, caching it and on next play from the client, playing the file from cache. However when i disconnect the internet connection or limit my bandwidth to something very low using "tc" (to pretend its on a bad connection) the youtube stream appears to still load from the internet, slowly.
Running Fedora 11 (tried Centos 5.3 as well) with squid-3.0.STABLE15-2.fc11 and videocache-1.9.1-1.
Im also wondering if http://127.0.0.1/videocache/youtube/ should show proper file sizes for the cached content, or is this read from /var/spool/squid? On my system all the links show as 0 size with what seems to be random filenames.
Thanks for this great software and i appreciate any replies.
I have exactly the same problem, except that my videocache was installed few months ago and it worked just fine, until recently it stopped serving youtube videos from cache. Videos are downloaded and stored, but on the next view SQUID download them from Internet anyway.
I've just fixed my youtube cache by replacing line 463 in videocache.py:
url = refine_url(url, ['begin', 'start'])
url = refine_url(url, ['begin', 'start', 'noflv'])
Make sure you have set the cache_host and proxy variables properly in videocache.conf and your proxy is able to access internet via itself. That means you have to allow localhost, 127.0.0.1 and your proxy ip through your proxy in squid.conf.
Please get back with results.
Don't forget to add ACL your proxy IP Address