small medium large xlarge

01 Jul 2011, 16:14
Peter Battaglia (27 posts)


In the book, it says you can setup page caching by setting the following directive:

config.action_controller.cache_store = :file_store, "#{Rails.root}/cache"


However, when I set this, the path to the cache is ignored and the cached pages are dumped into public.

If I then set:

  #config.action_controller.page_cache_directory = "#{Rails.root}/cache"


Then the cached files are stored there, however they are ignored by the server and rewritten on every request.

From what I could find on Google, it seems that you need to reset where Passenger is looking for the cached files, but I can’t find a good explanation on this.

Does anyone have any good references, or feedback on how to do this properly?


You must be logged in to comment