sync
This commit is contained in:
parent
befa1db235
commit
179543bcf0
1 changed files with 6 additions and 0 deletions
6
model.py
6
model.py
|
@ -101,6 +101,9 @@ class MemCache(Model):
|
|||
for x in values.keys()
|
||||
if record.id in values[x].keys()}
|
||||
cls._cashbook_value_cache.set(cache_keys[record.id], copy.deepcopy(data))
|
||||
print('\n## SYNC-GO-1')
|
||||
cls._cashbook_value_cache.sync(Transaction())
|
||||
print('-- SYNC-FERTIG-1')
|
||||
|
||||
@classmethod
|
||||
def store_value(cls, cache_key, values):
|
||||
|
@ -109,6 +112,9 @@ class MemCache(Model):
|
|||
if ENABLE_CACHE == False:
|
||||
return
|
||||
cls._cashbook_value_cache.set(cache_key, copy.deepcopy(values))
|
||||
print('\n## SYNC-GO-2')
|
||||
cls._cashbook_value_cache.sync(Transaction())
|
||||
print('-- SYNC-FERTIG-2')
|
||||
|
||||
@classmethod
|
||||
def read_from_cache(cls, records, cache_keys, names, result):
|
||||
|
|
Loading…
Reference in a new issue