Source

cmsplugin-feed / cmsplugin_feed / models.py

Diff from to

File cmsplugin_feed/models.py

 from django.db import models
+from django.core.cache import cache
 from django.utils.translation import ugettext as _
 from cms.models import CMSPlugin
 
 
     def __unicode__(self):
         return self.name
+    
+    def save(self, *args, **kwargs):
+        if self.id:
+            cache.delete("feed_%s" %self.id)
+        return super(Feed, self).save(*args, **kwargs)