Note, the cache doesn't do anything to clear out old items, so if you 
change the key every day, the previous day's page will still remain in the 
cache. You might want to do something to purge the old page out of the 
cache.

Also, are you absolutely sure returnDatestring() is returning only the date 
and not also the time?

Anthony

On Thursday, April 18, 2013 1:17:26 PM UTC-4, BlueShadow wrote:
>
> So you are basicly saying I did exactly what I wanted to do save the 
> entire generated page on disk.
> So how can I find out what is taking so long for the page to load?
>
> @Derek: thats easy: I want the page cached from 00:05 to 23:59. because 
> every day at midnight the data changes. if for some reason the page is 
> cached later than 00:05 (I got a cronjob with a curl to visit that page) 
> the new version will be calculated regardless of whether there is still a 
> cached version or not. (because the date changes)
>
> On Thursday, April 18, 2013 6:41:37 PM UTC+2, Paolo valleri wrote:
>>
>> Basically it stores the output of the function, in your case the output 
>> is the rendered view.
>> For more info about cache, have a look here: 
>> http://web2py.com/books/default/chapter/29/04#cache
>>
>> Paolo
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to