From: Andrew Dolgov Date: Tue, 22 Jan 2013 12:12:50 +0000 (+0400) Subject: disable content caching if _FEEDS_CONTENT_CACHE is not enabled X-Git-Tag: 1.7.0~40 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c5e3995f8cb1a2e40ec48d6ee3f0cc56bbbc1356;p=tt-rss.git disable content caching if _FEEDS_CONTENT_CACHE is not enabled --- diff --git a/include/rssfuncs.php b/include/rssfuncs.php index bc3cad70..b20c7958 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -562,7 +562,7 @@ _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)..."); } @@ -796,7 +796,7 @@ $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..."); }