Full-Page Cache with Apache
If you have a simple Page on a slow Server with Apache you can use the Full Page Caching for deliver the most pages directly from Apache (without passenger).
Activate "Cache Pages Full"
config/initializers/refinery/pages.rb, find the line that reads:
config.cache_pages_full = false
Set it to true, and uncomment the line:
config.cache_pages_full = true
Then restart your server.
From then on, every page you request from Refinery CMS will be saved at
public/refinery/cache/pages. For example, after you request
http://your-website/about, you will find a file named
public/refinery/cache/pages/about.html inside your application folder.
Now we have to redirect Apache to these generated files.
Add the following to your apache config or create an
.htaccess file in your project root:
Now pages are delivered by Apache without touching Passenger.
Page caching with Rails 4
The built-in page caching has been extracted to a separate gem in Rails 4. You need to add the gem
actionpack-page_caching to your
Gemfile if you're using Rails 4+.