[dancer-users] Refresh a Route periodically

Yanick Champoux yanick at babyl.dyndns.org
Wed Jul 3 03:14:31 BST 2013


On 13-07-02 05:56 PM, Anand Meher wrote:
> I am trying to develop a webpage where I would like to have contents of
> a webpage refreshed (say after every x seconds).

	Dancer::Plugin::Cache::CHI, perhaps ?


get '/' => sub {
	# only recomputed every 5 minutes
	cache_page template( 'index' ), 300;
};


Joy,
`/anick


More information about the dancer-users mailing list