witten
/
luminotes
Archived
1
0
Fork 0
This commit is contained in:
Dan Helfman 2008-03-07 23:20:32 +00:00
parent 2b0a9af3e3
commit 1f57e4ba8a
1 changed files with 3 additions and 2 deletions

View File

@ -101,8 +101,9 @@ class Database( object ):
connection.commit()
# save any pending saves to the cache
for obj in connection.pending_saves:
self.__cache.set( obj.cache_key, obj )
if self.__cache:
for obj in connection.pending_saves:
self.__cache.set( obj.cache_key, obj )
connection.pending_saves = []