No commit activity in last 3 years
No release in over 3 years
Rack middleware for periodic cache regeneration
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Rack Regenerate¶ ↑

Usage¶ ↑

In your rackup file, simply use Rack::Regenerate.

If you want a request periodically updated, just send back a header that looks like this: X-Cache-Regenerate: [interval in seconds] [number of times to call]

If for example you sent a header of X-Cache-Regenerate: 10 20 then the page will be called every 10 seconds 20 times.

If you want a regeneration job to run indefinitely, use -1 for the second argument.