Update item_variants_cache.py

This commit is contained in:
Nabin Hait 2019-05-01 19:27:23 +05:30 committed by GitHub
parent 284e5a284e
commit c64cc331b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,5 @@ def build_cache(item_code):
def enqueue_build_cache(item_code):
if frappe.cache().hget('item_cache_build_in_progress', item_code):
print('caching in progress for', item_code)
return
frappe.enqueue(build_cache, item_code=item_code, queue='short')