--- a/app/soc/logic/models/base.py Mon Aug 31 05:04:31 2009 -0700
+++ b/app/soc/logic/models/base.py Mon Aug 31 05:06:17 2009 -0700
@@ -357,11 +357,14 @@
"""
from google.appengine.api import memcache
- queries = memcache.get('__melange_queries')
- if not queries:
+ from soc.logic import system
+
+ if system.isDebug():
+ queries = memcache.get('__melange_queries')
+ if not queries:
queries = []
- queries.append((self._model.__name__, filter, order))
- memcache.set('__melange_queries', queries)
+ queries.append((self._model.__name__, filter, order))
+ memcache.set('__melange_queries', queries)
if not filter:
filter = {}