tharealpatton
2007-Apr-05 18:42 UTC
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
tharealpatton
2007-Apr-05 23:45 UTC
Re: App ignores cached pages and re-caches them again and again...
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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Justin Mazzi
2007-Apr-06 16:06 UTC
Re: App ignores cached pages and re-caches them again and ag
tharealpatton wrote:> 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? > > PJAs a work around, symlink your cache dir to the dir where you want it rm -rf /home/app/tmp/cache ln -s /real/cache/dir /home/app/tmp/cache -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Russell Norris
2007-Apr-06 16:40 UTC
Re: App ignores cached pages and re-caches them again and again...
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 On 4/5/07, tharealpatton <pj-KuE4Goz3TDoncWgORnbzmV6hYfS7NtTn@public.gmane.org> wrote:> > > 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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---