Exemple #1
0
def regen_if_dirty(sender, **kwargs):
	# Guard against cuncurrent access by regenerating again.
	while Variable.get("transaction_cache_dirty", True):
		Variable.set("transaction_cache_dirty", False)
		TransactionCache.regenerate()
Exemple #2
0
def set_dirty(*args, **kwargs):
	Variable.set("transaction_cache_dirty", True)