diff --git a/templates_bw/accounts/account_latest_packs_section.html b/templates_bw/accounts/account_latest_packs_section.html index c384c97ee..149166525 100644 --- a/templates_bw/accounts/account_latest_packs_section.html +++ b/templates_bw/accounts/account_latest_packs_section.html @@ -1,6 +1,6 @@ {% load display_pack %} {% load cache %} -{% cache 43200 bw_user_profile_latest_packs_section is_authenticated %} +{% cache 43200 bw_user_profile_latest_packs_section user.id is_authenticated %} {% with user.profile.get_latest_packs_for_profile_page as latest_packs %} {% if latest_packs %}
diff --git a/utils/cache.py b/utils/cache.py index 597e5e5b8..4416b1926 100644 --- a/utils/cache.py +++ b/utils/cache.py @@ -40,8 +40,8 @@ def invalidate_user_template_caches(user_id): invalidate_template_cache('bw_user_profile_followers_count', user_id) invalidate_template_cache('bw_user_profile_following_count', user_id) invalidate_template_cache('bw_user_profile_following_tags_count', user_id) - invalidate_template_cache('bw_user_profile_latest_packs_section', True) - invalidate_template_cache('bw_user_profile_latest_packs_section', False) + invalidate_template_cache('bw_user_profile_latest_packs_section', user_id, True) + invalidate_template_cache('bw_user_profile_latest_packs_section', user_id, False) cache.delete(settings.USER_STATS_CACHE_KEY.format(user_id))