Re: [SQLObject] connection document on wiki
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Michael W. <li...@mi...> - 2004-09-02 07:48:56
|
> I think cache in "connection.cache.expireAll()" is actually a CacheSet > object, and expireAll() is a method of CacheFactory. That lead me to t= ry > the following: > > for key in connection.cache.caches.keys(): > connection.cache.caches[key].expireAll() Hmnn... that's almost exactly what I have done. import gc def expire_all(): c =3D get_connection() for k in c.cache.caches.keys(): c.cache.caches[k].expireAll() gc.collect() Ah, thought this looked familiar: "The SQLObject code has a bug in expireAll =96 ref(obj) instead of ref(value) =96 and the method isn=92t called from anywhere in the code ei= ther, at least not in the svn checkout I am looking at." http://mikewatkins.net/categories/technical/2004-07-14-1.html |