ri > ActionController::Caching

```html

📖 Name

ActionController::Caching

🚀 Quick Reference

Use Case Command Description
🔧 Configure caching store config.action_controller.cache_store = :memory_store Use in-memory cache (default for development/test)
📁 File-based cache config.action_controller.cache_store = :file_store, '/path/to/cache/directory' Store cache on disk in the specified directory
🌐 Memcached cache config.action_controller.cache_store = :mem_cache_store, 'localhost' Use a Memcached server at localhost
🧩 Custom cache store config.action_controller.cache_store = MyOwnStore.new('parameter') Use a custom cache store implementation
🚫 Disable caching config.action_controller.perform_caching = false Turn off all Action Controller caching

🧩 Includes

AbstractController::Caching (from /home/chedong/.local/share/rdoc)

🔌 Extended by

ActiveSupport::Concern (from /home/chedong/.local/share/rdoc)

📝 Description

Caching is a cheap way of speeding up slow applications by keeping the result of calculations, renderings, and database calls around for subsequent requests.

You can read more about each approach by clicking the modules below.

Note: To turn off all caching provided by Action Controller, set

config.action_controller.perform_caching = false

All the caching stores from ActiveSupport::Cache are available to be used as backends for Action Controller caching.

🏪 Caching Stores

Configuration examples (FileStore is the default):

config.action_controller.cache_store = :memory_store
config.action_controller.cache_store = :file_store, '/path/to/cache/directory'
config.action_controller.cache_store = :mem_cache_store, 'localhost'
config.action_controller.cache_store = :mem_cache_store, Memcached::Rails.new('localhost:11211')
config.action_controller.cache_store = MyOwnStore.new('parameter')
```
ActionController::Caching
📖 Name 🚀 Quick Reference 🧩 Includes 🔌 Extended by 📝 Description 🏪 Caching Stores

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 16:36 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format