Author: batiste.bieler
Date: Fri Apr 24 00:43:48 2009
New Revision: 476
Modified:
trunk/pages/admin/views.py
trunk/pages/models.py
Log:
Fix some cache invalidation issue
Modified: trunk/pages/admin/views.py
==============================================================================
--- trunk/pages/admin/views.py (original)
+++ trunk/pages/admin/views.py Fri Apr 24 00:43:48 2009
@@ -32,6 +32,7 @@
else:
Content.objects.set_or_create_content(page, language_id,
content_id, content)
+ page.invalidate()
return HttpResponse('ok')
raise Http404
modify_content = staff_member_required(modify_content)
Modified: trunk/pages/models.py
==============================================================================
--- trunk/pages/models.py (original)
+++ trunk/pages/models.py Fri Apr 24 00:43:48 2009
@@ -124,6 +124,7 @@
for lang in settings.PAGE_LANGUAGES:
cache.delete(self.PAGE_URL_KEY % (self.id, lang[0]))
+ cache.delete(self.PAGE_URL_KEY % (self.id, "None"))
def get_languages(self):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---