fix: Dont rebuild cache on cache bust (#18319)

- Results in a lot of stale background jobs
- Cache will be built when needed
This commit is contained in:
Faris Ansari 2019-07-15 14:30:21 +05:30 committed by Nabin Hait
parent e37ff39836
commit 280fe396b9

View File

@ -1007,7 +1007,7 @@ def invalidate_item_variants_cache_for_website(doc):
if item_code:
item_cache = ItemVariantsCacheManager(item_code)
item_cache.rebuild_cache()
item_cache.clear_cache()
def check_stock_uom_with_bin(item, stock_uom):