mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
9 lines
196 B
Python
9 lines
196 B
Python
from django.core.cache import cache
|
|
from django.db.models.signals import post_save
|
|
from django.dispatch import receiver
|
|
|
|
|
|
@receiver(post_save)
|
|
def clear_cache(sender, **kwargs):
|
|
cache.clear()
|