App ignores cached pages and re-caches them again and again...

I'm wondering if anyone has any ideas on what would cause rails to
write the cached page, but the app ignore the caches pages and instead
cache it again and again on every request?

I'm setting config.action_controller.page_cache_directory = RAILS_ROOT
+"/public/cache/", but it happens when I don't do that as well.

Any ideas would be greatly appreciated.

Thanks.

PJ

Actually, correction, caching is fine when I don't try to set
config.action_controller.page_cache_directory. I've read a couple
places now that this causes the issue. Has anyone found a solution to
this?

PJ

You need to get the server to actually serve the pages from the relocated cache. This will depend on what server you’re running on. The only configuration I’m familiar enough with is Apache. Editing the rewrite conditions in public/.htaccess will get you want you want with it. You might try Googling for solutions on the other server platforms.

RSL