kopia lustrzana https://github.com/wagtail/wagtail
Renamed 'wagtailfrontendcache.purger' to 'wagtailfrontendcache.utils'
rodzic
d667836188
commit
9c4ac7fc31
|
@ -3,15 +3,15 @@ from django.db.models.signals import post_save, post_delete
|
|||
|
||||
from wagtail.wagtailcore.models import Page
|
||||
|
||||
from wagtail.contrib.wagtailfrontendcache import purger
|
||||
from wagtail.contrib.wagtailfrontendcache.utils import purge_page_from_cache
|
||||
|
||||
|
||||
def post_save_signal_handler(instance, **kwargs):
|
||||
purger.purge_page_from_cache(instance)
|
||||
purge_page_from_cache(instance)
|
||||
|
||||
|
||||
def post_delete_signal_handler(instance, **kwargs):
|
||||
purger.purge_page_from_cache(instance)
|
||||
purge_page_from_cache(instance)
|
||||
|
||||
|
||||
def register_signal_handlers():
|
||||
|
|
Ładowanie…
Reference in New Issue