If you are interested in caching view or controller output, please
check the examples section: 
http://web2py.com/examples/default/examples#cache_examples

Notice the timers which indicate how long before the view or
controller output is re-rendered.  You can also check out appadmin.py
included within your application; it shows you how to clear cached
output, e.g.:

        if clear_ram:
            cache.ram.clear()
            session.flash += "Ram Cleared "
        if clear_disk:
            cache.disk.clear()
            session.flash += "Disk Cleared"

On Sep 18, 6:45 pm, Jurgis Pralgauskis <jurgis.pralgaus...@gmail.com>
wrote:
> would it be sound to use some cache_db instead of memcache in GAE
> then?
> For example if I render a CPU requiring view I want to cache,
> but  I could clear it anytime I like.
>
> hm, or could there be a recipy to abandon current memcached object.
> this would need extra hash table:
>
> as if now probably is sth like
> stuff_key <---cached---> stuff_value
>
> would become
> stuff_key <---extra_hash---> stuff_key_timestamp <---cached--->
> stuff_value
> and on clear just delete the stuff_key from extra_hash
>
> On 2 Rugs, 00:25, mdipierro <mdipie...@cs.depaul.edu> wrote:> no. sorry
>
> > On Sep 1, 3:49 pm,JurgisPralgauskis <jurgis.pralgaus...@gmail.com>
> > wrote:
>
> > > Hello,
>
> > > inhttp://www.web2py.com/book/default/chapter/04booksays
>
> > > The time_expire can be set to 0 to force a cache refresh and to None
> > > to prevent the content from ever expiring.
> > > You can clear one or more cache variables with
> > > cache.ram.clear(regex='...')
>
> > > does this apply to gaememcache?
>
> > > ifmemcachedecorates some controller,
> > > and I know its key, how can I force recache its new result?

Reply via email to