Hello Stifan,

for a db(...).select(...) you would do

db(query).select(cache=(cache.ram,0))

the zero will reset the cache for this query.



On Apr 13, 2011, at 9:43 PM, Stifan Kristi wrote:

> hi massimo, 
> 
> i'll try your adviced, pardon, how / where to put expire_time = 0? i've 
> already search it on the book :
> http://web2py.com/book/default/docstring/expire_time
> but it returns null
> 
> thank you so much in advance.
> 
> best regards,
> 
> steve van christie
> 
> On Thu, Apr 14, 2011 at 9:28 AM, Massimo Di Pierro 
> <massimo.dipie...@gmail.com> wrote:
> If you call it with expire_time=0 it will force a cache reset.
> 
> On Apr 13, 7:49 pm, Stifan Kristi <steve.van.chris...@gmail.com>
> wrote:
> > yes, after i inserted a new data, i immediately checked the new one, but it
> > didn't appears, after i checked it many times, and after few minutes, the
> > data is show up. i think for now, i'll try to not use *cache = (cache.ram,
> > 60)*, because i'm still learning the python and web2py.
> >
> > thank you so much for your adviced.
> >
> > best regards,
> >
> > steve van christie
> 

Reply via email to