aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-05 00:39:54 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-10-05 00:39:54 +0200
commit05cabe99ae48a187a77e0246dfffc60f2434b5e5 (patch)
treeafdc651a319158103e364701395b2a02899a3f82 /app/Models/Feed.php
parent76c4a9aec1ae6b11efbeda16e639b47b9a5e793f (diff)
Take better advantage of other users refresh
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index f2f345662..f435620c8 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -340,6 +340,10 @@ class FreshRSS_Feed extends Minz_Model {
$this->entries = $entries;
}
+ function cacheModifiedTime() {
+ return @filemtime(CACHE_PATH . '/' . md5($this->url) . '.spc');
+ }
+
function lock() {
$this->lockPath = TMP_PATH . '/' . $this->hash() . '.freshrss.lock';
if (file_exists($this->lockPath) && ((time() - @filemtime($this->lockPath)) > 3600)) {