class method self.page_cache_directory

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.1.12

Available in: v3.0.20 v3.1.12

The cache directory should be the document root for the web server and is set using Base.page_cache_directory = "/document/root". For Rails, this directory has already been set to Rails.public_path (which is usually set to Rails.root + "/public"). Changing this setting can be useful to avoid naming conflicts with files in public/, but doing so will likely require configuring your web server to look in the new location for cached files.

Source
# File actionpack/lib/action_controller/caching/pages.rb, line 47
        config_accessor :page_cache_directory

Defined in actionpack/lib/action_controller/caching/pages.rb line 47 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Caching::Pages

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close