summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/rssutils.php')
-rw-r--r--classes/rssutils.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index e6fe39592..b882b872d 100644
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -1152,7 +1152,7 @@ class RSSUtils {
if (!file_exists($local_filename)) {
$file_content = fetch_file_contents($src);
- if ($file_content && strlen($file_content) > _MIN_CACHE_FILE_SIZE) {
+ if ($file_content && strlen($file_content) > MIN_CACHE_FILE_SIZE) {
file_put_contents($local_filename, $file_content);
}
} else {
@@ -1186,7 +1186,7 @@ class RSSUtils {
if (!file_exists($local_filename)) {
$file_content = fetch_file_contents($src);
- if ($file_content && strlen($file_content) > _MIN_CACHE_FILE_SIZE) {
+ if ($file_content && strlen($file_content) > MIN_CACHE_FILE_SIZE) {
file_put_contents($local_filename, $file_content);
}
} else {
@@ -1243,7 +1243,7 @@ class RSSUtils {
if ($files) {
foreach ($files as $file) {
- if (time() - filemtime($file) > 86400*7) {
+ if (time() - filemtime($file) > 86400*CACHE_MAX_DAYS) {
unlink($file);
++$num_deleted;