Permalink
Browse files

Merge pull request #3 from zigomir/master

Documenting page_cache_directory setting
  • Loading branch information...
2 parents 446fedb + 5ad25ef commit 937763e7f37063ffbc96a600ba889fc9e953b8e8 Francesco Rodríguez committed Apr 6, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -30,6 +30,10 @@ treated the same. Content management systems -- including weblogs and wikis --
have many pages that are a great fit for this approach, but account-based systems
where people log in and manipulate their own data are often less likely candidates.
+First you need to set `page_cache_directory` in your configuration file:
+
+ config.action_controller.page_cache_directory = "#{Rails.root.to_s}/public/deploy"
+
Specifying which actions to cache is done through the `caches_page` class method:
class WeblogController < ActionController::Base

0 comments on commit 937763e

Please sign in to comment.