I think cache.ram is funky.   I tried a small test by cache.ram'ing a
controller function, like this:

@cache(request.env.path_info, time_expire=10, cache_model=cache.ram\
)
def test():
    d = dict(x = 30)
    return response.render(d)

and in test.html

{{=x}}

..

If you change 30 to 40, for example, the behavior is that the value
during the 10 seconds could be 30 or 40 after each refresh.   The
behavior is not deterministic, so it's difficult to debug.

cache.disk doesn't seem to have this behavior.






On Apr 13, 7:49 pm, Stifan Kristi <[email protected]>
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