Skip to content

Commit

Permalink
remove caching as the cache does not get cleared between requests whi…
Browse files Browse the repository at this point in the history
…ch may lead to ignoring admin changes
  • Loading branch information
regulartim committed Dec 13, 2024
1 parent 47875d2 commit 0e58f87
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions api/serializers.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}")
Expand Down

0 comments on commit 0e58f87

Please sign in to comment.