From f88249c8fce4a078a49086d166f6e34ef8ed17ec Mon Sep 17 00:00:00 2001 From: T'rahk Rokym Date: Mon, 21 Apr 2025 12:35:55 +0200 Subject: [PATCH] Enable caching --- allianceauth/templatetags/admin_status.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/allianceauth/templatetags/admin_status.py b/allianceauth/templatetags/admin_status.py index ca055345..09b41b50 100644 --- a/allianceauth/templatetags/admin_status.py +++ b/allianceauth/templatetags/admin_status.py @@ -162,14 +162,11 @@ def _current_notifications() -> dict: for hook in hooks: logger.info(hook) try: - app_notifications.extend(hook.get_announcement_list()) - """ app_notifications.extend(cache.get_or_set( f"{hook.app_name}_notification_issues", hook.get_announcement_list, NOTIFICATION_CACHE_TIME, )) - """ except requests.HTTPError: logger.warning("Error when getting %s notifications", hook, exc_info=True)