It seems like the 'cache' and 'cacheable' arguments to the .select() 
statement do not work on GAE. This is even after setting 
cache.ram=cache.memcache (following the code in the book and multiple 
examples in this forum)

I tested on a GAE app, and explicitly setting memcache works, but the 
select statements ignore it and go straight to the database.

I also looked at the code in the GoogleDatastoreAdapter class in dal.py, 
the select() functions passes control through to the select_raw() function, 
and the select_raw() function does not check for the 'cache' or 'cacheable' 
attribute at all.

The book does not explicitly say that cache/cacheable do not work on GAE, 
only that we should use memcache (which I am using).

Am I missing something? Is this a bug?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to