1. Yann Malet
  2. cmsplugin-feed

Source

cmsplugin-feed / cmsplugin_feed / cms_plugins.py

Diff from to

File cmsplugin_feed/cms_plugins.py

 
 from cmsplugin_feed.models import Feed
 from cmsplugin_feed.forms import FeedForm
+from cmsplugin_feed.settings import CMSPLUGIN_FEED_CACHE_TIMEOUT
 
 def get_cached_feed(instance):
     """
     """
     if not cache.has_key("feed_%s" %instance.id):
         feed = feedparser.parse(instance.feed_url)
-        cache.set("feed_%s" %instance.id, feed, 100)
+        cache.set("feed_%s" %instance.id, feed, CMSPLUGIN_FEED_CACHE_TIMEOUT)
     return cache.get("feed_%s" %instance.id)
 
 class FeedPlugin(CMSPluginBase):