Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding info on how expiration works and updating reference to sweeper…

… (script vs. rake task)
  • Loading branch information...
commit 8a314576324b839d1678fe289c79da227ea2651a 1 parent 5bddd7b
@yeah yeah authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 README.rdoc
View
8 README.rdoc
@@ -33,6 +33,12 @@ PageCacheFu adds the following missing features:
If someone could supply a nginx sample config, it'd be greatly appreciated...
+== Where's the metadata?
+
+PageCacheFu sets the file modification timestamp of cached pages to the point in time when the cached page is set to expire. The sweeper is periodically checking the filesystem for files which have a modification timestamp that is past the current date and deletes those files.
+
+If you have issues with future dates as modification timestamps or can't use the modification timestamps like this, PageCacheFu's page cache expiration mechanism might not be the right thing for you.
+
== Options for +caches_page+
You can use the following options with <code>caches_page</code> in your controllers:
@@ -59,7 +65,7 @@ By default, page_cache_fu stores cached files in <code>#{RAILS_ROOT}/public/cach
== Sweeper options
-The sweeper is usually called via the <code>page_cache_fu:sweep_expired_page_caches</code> Rake task. However, you can call <code>PageCacheFu::CacheSweeper#sweep_if_expired</code> on your own, if you like. It takes the cache directory as a first parameter and a hash of options as the second. These options are:
+The sweeper is usually called via the <code>page_cache_sweeper</code> script. However, you can call <code>PageCacheFu::CacheSweeper#sweep_if_expired</code> on your own, if you like. It takes the cache directory as a first parameter and a hash of options as the second. These options are:
=== <code>:recursive</code>
Please sign in to comment.
Something went wrong with that request. Please try again.