Just to wrap this up:
So here is what I did to solve my problem (data is added once a day, time
to render the result page takes forever):
The function which gets the data got appended by: cache.disk.clear() and
cache.ram.clear()
I used the unix crantab to call that function once a day via a
Yes, that was my question. If it doesn't include the time, then it should
work fine.
On Thursday, April 18, 2013 11:59:53 AM UTC-7, Anthony wrote:
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
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
On Thursday, April 18, 2013 6:17:36 PM UTC+2, BlueShadow wrote:
Hi I got a site which calls
Why would you be using 'returnDatestring + Somepage' as your key to the
cache?
On Thursday, April 18, 2013 9:17:36 AM UTC-7, BlueShadow wrote:
Hi I got a site which calls some major calculating. So I thought lets use
the cache decoator to speed up second time loads.
But it doesnt seem to
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
for starters check the cache page in appadmin (go to database
administration, then click cache at the top) to see hot many hits/misses
you find.
In a perfect world ( i.e. your cache works as expected) you'd have 1 miss
and n-1 hits with n being the number of times your page is accessed.
On
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
7 matches
Mail list logo