SF.net SVN: gar:[23667] csw/mgar/gar/v2/lib/python/models.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Tue May 20 00:22:26 CEST 2014
Revision: 23667
http://sourceforge.net/p/gar/code/23667
Author: wahwah
Date: 2014-05-19 22:22:26 +0000 (Mon, 19 May 2014)
Log Message:
-----------
pkgdb: Don't cache pkg-catalog assignments
They can change quickly and it's safer to not cache them and avoid a situation
where we get old results.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/models.py
Modified: csw/mgar/gar/v2/lib/python/models.py
===================================================================
--- csw/mgar/gar/v2/lib/python/models.py 2014-05-19 22:22:15 UTC (rev 23666)
+++ csw/mgar/gar/v2/lib/python/models.py 2014-05-19 22:22:26 UTC (rev 23667)
@@ -519,6 +519,10 @@
'arch', 'osrel', 'catrel', 'srv4file',
unique=True)
+ # http://turbogears.org/1.0/docs/SQLObject/Caching.html#what-does-cache-false-do
+ class sqlmeta:
+ cacheValues = False
+
def __unicode__(self):
return (u"%s is in catalog %s %s %s"
% (self.srv4file,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list