method
page_cache_path
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
Register or
log in
to add new notes.
dvdplm -
November 10, 2009
![Default_avatar_30](https://www.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?default=http://apidock.com/images/default_avatar_30.png&size=30)
2 thanks
Where are the cached files?
If you configure your app to use the file_store like so:
config.cache_store = :file_store, '/tmp'
and expect you cached page pages to end up in /tmp, think again…
Rails – rather obscurely imho – will store page cached pages in the public/ folder of your app, making it easy for your webserver to find them.
The ‘page_cache_directory’ used in the ‘page_cache_path’ method above is a class var that defaults to the public/ dir.