The SA identity mapper isn't *supposed* to be a cache, but it sure can
act like one sometimes.
svn path=/trunk/packages/invirt-web/; revision=2993
app_config = {
'/': {
'tools.invirtwebstate.on': True,
+ 'tools.clear_db_cache.on': True,
},
}
import datetime, decimal
from StringIO import StringIO
from invirt.config import structs as config
+import invirt.database
from webcommon import State
invirtwebstate_init, priority=100)
+cherrypy.tools.clear_db_cache = cherrypy.Tool('on_start_resource', invirt.database.clear_cache)
+
+
class View(object):
_cp_config = {'tools.mako.directories':
[os.path.join(os.path.dirname(__file__),'templates')]}