[dancer-users] Refresh a Route periodically

Puneet Kishor punk.kish at gmail.com
Wed Jul 3 03:18:59 BST 2013


On Jul 2, 2013, at 7:14 PM, Yanick Champoux <yanick at babyl.dyndns.org> wrote:

> 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;
> };


Client-side pull perhaps? In other words, nothing to do with Dancer... Just use JS to poll every five mins for new results.

--
Puneet Kishor


More information about the dancer-users mailing list