]> git.wh0rd.org Git - tt-rss.git/commitdiff
disable content caching if _FEEDS_CONTENT_CACHE is not enabled
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 22 Jan 2013 12:12:50 +0000 (16:12 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 22 Jan 2013 12:12:50 +0000 (16:12 +0400)
include/rssfuncs.php

index bc3cad7040c9cd7d830b0a06dcf4963fd9cd9f73..b20c7958ca9ae608cfeefa60164da4d3bf9bd06e 100644 (file)
                                                _debug("update_rss_feed: base guid [$entry_guid] not found");
                                        }
 
-                                       if ($cache_content) {
+                                       if (defined('_FEEDS_CONTENT_CACHE') && _FEEDS_CONTENT_CACHE && $cache_content) {
                                                if ($debug_enabled) {
                                                        _debug("update_rss_feed: caching content (initial)...");
                                                }
                                                $cached_content_needs_update = true;
                                        }
 
-                                       if ($cache_content) {
+                                       if (defined('_FEEDS_CONTENT_CACHE') && _FEEDS_CONTENT_CACHE && $cache_content) {
                                                if ($debug_enabled) {
                                                        _debug("update_rss_feed: caching content because original checksum changed...");
                                                }