Whoops.
This commit is contained in:
parent
2b0a9af3e3
commit
1f57e4ba8a
|
@ -101,8 +101,9 @@ class Database( object ):
|
||||||
connection.commit()
|
connection.commit()
|
||||||
|
|
||||||
# save any pending saves to the cache
|
# save any pending saves to the cache
|
||||||
for obj in connection.pending_saves:
|
if self.__cache:
|
||||||
self.__cache.set( obj.cache_key, obj )
|
for obj in connection.pending_saves:
|
||||||
|
self.__cache.set( obj.cache_key, obj )
|
||||||
|
|
||||||
connection.pending_saves = []
|
connection.pending_saves = []
|
||||||
|
|
||||||
|
|
Reference in New Issue