method

page_cache_path

page_cache_path(path, extension = nil)
private

No documentation available.

# File actionpack/lib/action_controller/caching/pages.rb, line 108
          def page_cache_path(path, extension = nil)
            page_cache_directory.to_s + page_cache_file(path, extension)
          end

1Note

Where are the cached files?

dvdplm ยท Nov 10, 20092 thanks

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.