use a function to inspect request.now and calculate how many seconds you
want the data to be stored.....then pass that value to the time_expire
parameter.
On Sunday, April 14, 2013 12:35:59 PM UTC+2, BlueShadow wrote:
>
> Hi,
> I'm loving the @cache decorator like this one.
> @cache("key", time_expire=100, cache_model=cache.disk)
> Now I have a very specific problem. I want to display some results of a
> testing machine which gives out huge amounts of data. 1MB CSV. which is
> after dropping the useless data still 200kB of data.
> The Old data has to be used to. So right now I got 21MB of database which
> needs to be parsed.
> Those test results come via email to my w2p app. which works great. The
> results come in every day at midnight.
> So I thought it would be ideal to cache the output.
> At Midnight there is no server load so it would be perfect to do all the
> work right after the data comes in cache it and store it until the next
> chunk of data comes in.
> So is there a way to load the funktion from w2p lets say every day at
> 00:05 cache the data for 24 hours.
>
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.