From 0e58f8716a3b6983ed6714253179d713b1de9f17 Mon Sep 17 00:00:00 2001 From: tim Date: Fri, 13 Dec 2024 09:05:21 +0100 Subject: [PATCH] remove caching as the cache does not get cleared between requests which may lead to ignoring admin changes --- api/serializers.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/serializers.py b/api/serializers.py index 580c013..4d2d676 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -1,6 +1,5 @@ import logging import re -from functools import cache from greedybear.consts import REGEX_DOMAIN, REGEX_IP from greedybear.models import IOC, GeneralHoneypot @@ -48,7 +47,6 @@ def validate(self, data): return data -@cache def feed_type_validation(feed_type: str, valid_feed_types: frozenset) -> str: if feed_type not in valid_feed_types: logger.info(f"Feed type {feed_type} not in feed_choices {valid_feed_types}")