You are hereForums / Support / Storing video data longer

Version 1.9.9 is out. We have added support for Youtube mobile videos, Facebook, AOL and MySpace videos as well. Fixed caching issues for some already supported websites. Options to control cache directory selection algorithm, bandwidth usage by videocache, etc. More robust videocache scheduler with a lot more options and features. Have a look at changelog for more details. If you have purchased Videocache in last one year, Contact Us to claim your free upgrade. Please mention the email address using which you purchased Videocache. New users proceed to Pricing Page right now, secure your copy and enjoy caching :-) Also, check our new and simplified upgrade policy :-)

Storing video data longer


5 replies [Last post]
Anonymous
Storing video data longer
Printer-friendly versionSend to friend

Is there a way to set squid to cache videos for a longer period of time than other cached data?

I'd like to keep the videos for a week or so but trash the web cache after 12 hours.

admin's picture
Offline
Joined: Nov 2 2008

No. Squid can't distinguish like this. Videos cached using youtube cache are kept in the cache forever unless you choose to delete them.

The only way to do this is using refresh_pattern directive in squid. But that is complex and you may end up screwing your web experience by browsing the stale content.

Anonymous (not verified)

Is there a way to cluster two squid caches together and have one handle video and another handle web cache?

admin's picture
Offline
Joined: Nov 2 2008

You don't really need to cluster caches. You can use two squid in cascading mode. For example, let us say you have two squid machine A and B.

Squid A is your main proxy server to which all your clients connect. You configure squid A to cache all web content and not media content like flv, avi etc. using cache_deny and acl directives provided by squid.

Squid B is your another proxy server which doesn't cache anything from web content. Here you cache only media content like flv, avi, mpg etc. using cache_deny and acl directives.

Now, you cascade squid A to B based on domains. You need to look at cache_peer, cache_peer_domain, cache_peer_access, never_direct and prefer_direct directives provided by squid. The idea you are trying to achieve is possible. In case you need any assistant regarding exact configurations contact me using contact tab on the top.

Anonymous (not verified)

I need a setup exactly as you describe. However, is it possible to configure 2 squid proxy’s on same server and still work with the cache videos plugin?

admin's picture
Offline
Joined: Nov 2 2008

Yes. It is possible. But they should be running on different ports.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

My Book on Squid

Purchase/Renew

One License - USD $399
One License - USD $349*
Validity - One Year
Need more? Contact Us
*Includes free upgrades and support for one year.



For details, check pricing.

Recent comments

Who's online

There are currently 0 users and 100 guests online.