small fixes in product caching

This commit is contained in:
Nabin Hait 2012-12-30 19:56:57 +05:30
parent 751af41a94
commit 833d7a65d5

View File

@ -102,4 +102,5 @@ def get_parent_item_groups(item_group_name):
def invalidate_cache_for(item_group):
for i in get_parent_item_groups(item_group):
delete_page_cache(i.page_name)
if i.page_name:
delete_page_cache(i.page_name)