mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-07 22:57:50 +02:00
15 lines
426 B
Python
15 lines
426 B
Python
from django.conf import settings
|
|
from django.apps import AppConfig
|
|
|
|
|
|
class RamConfig(AppConfig):
|
|
name = "ram"
|
|
|
|
def ready(self):
|
|
cache_middleware = set([
|
|
"django.middleware.cache.UpdateCacheMiddleware",
|
|
"django.middleware.cache.FetchFromCacheMiddleware",
|
|
])
|
|
if cache_middleware.issubset(settings.MIDDLEWARE):
|
|
from ram.signals import clear_cache # noqa: F401
|