This file is left here for reference. Explicit caching has been removed, As of 25Nov2025 - Consider removing Memcached and implementing a simpler solution with fewer dependencies.
The pages are cached via Rack::Cache and Memcached. Rack::Cache sits inbetween nginx and Rails as a Rack middleware, and stores the requested pages in memcached and serves them directly on request, completely avoiding the Rails stack.
Ansible handles installing Memcached on production. Should you wish to set it up locally, take a look at the Ansible memcached scripts.
In the Rails console:
Rails.cache.clear