Nathan Donaldson
2006-Jun-19 01:59 UTC
[Rails] Expiring fragment cache when multiple domains point to the same app?
Hi All, We have four domains setup for The Couch: thecouch.org.nz, thecouch.co.nz, www.thecouch.org.nz and www.thecouch.co.nz. They are all handled by the same rails app. The means that fragment caching creates four folders in our cache directory, named after each URL. This introduces two problems: 1: We are caching 4 times as much stuff as necessary 2: Our cache sweepers are only sweeping one of the caches (i.e. if we login through thecouch.org.nz it sweeps thecouch.org.nz cache but not the other 3) I have tried making symbolic links for three of the folders pointing to the main folder, but this didn''t work. I would prefer not to have redirects setup for the domains. Has anyone faced this problem before? Any suggestions? Regards, Nathan ________________ BOOST NEW MEDIA http://www.boost.co.nz nathan@boost.co.nz Phone: +64 4 939 0062 Fax: +64 4 939 0063 93 Cuba St PO Box 11 504 Wellington New Zealand
Seemingly Similar Threads
- Help: Expiring fragment cache across multiple domains
- Expiring Cache Fragments and fcgi
- expiring cache fragments using script/runner
- Problems when using sweepers with postbacks
- A bug in sweeper.rb? [was: A frustrating and strange error when config.action_controller.perform_caching = true]