There is an document about app cache and handler cache:
http://code.google.com/appengine/docs/python/runtime.html#App_Caching

I can also give you some example code, but you need modify it to fit
your framework(maybe a decorator for your handler):

main.py:

cache = {} # must be a global variable

def main():
  # get the request path
  page = cache.get(path, None)
  if page and page['time'] - time() < page['cache_time']
    # output page['content']
  else:
    # generate your page and output it
    cache['path'] = {'time': time(), 'cache_time': 60, 'content': content}

if __name__ = '__main__':
  main()

2009/11/13 GAEfan <[email protected]>:
> Thanks, Keakon.  Can you please explain in more detail about your
> handler cache?
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=.


Reply via email to