class method
self.page_cache_directory
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.1.12Available 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 46
config_accessor :page_cache_directory
Defined in actionpack/lib/action_controller/caching/pages.rb line 46
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Caching::Pages