projects
/
doneit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09b3d4e
)
Fixing two caching bugs, one with double invalidating, the other with metalists
author
Ed Page
<eopage@byu.net>
Fri, 24 Apr 2009 04:20:25 +0000
(23:20 -0500)
committer
Ed Page
<eopage@byu.net>
Fri, 24 Apr 2009 04:20:25 +0000
(23:20 -0500)
src/cache_backend.py
patch
|
blob
|
history
diff --git
a/src/cache_backend.py
b/src/cache_backend.py
index
c9968ff
..
0e4afcb
100644
(file)
--- a/
src/cache_backend.py
+++ b/
src/cache_backend.py
@@
-152,11
+152,12
@@
class LazyCacheBackend(object):
self._invalidate_metaprojects_tasks()
def _invalidate_projects_tasks(self, projId):
- del self._items[projId]
+ if projId in self._items:
+ del self._items[projId]
def _invalidate_metaprojects_tasks(self):
- for projId in self._get_metalists():
- self._invalidate_projects_tasks(projId)
+ for proj in self._get_metalists():
+ self._invalidate_projects_tasks(proj["id"])
def _get_metalists(self):
return (