diff options
| author | 2016-10-05 00:39:54 +0200 | |
|---|---|---|
| committer | 2016-10-05 00:39:54 +0200 | |
| commit | 05cabe99ae48a187a77e0246dfffc60f2434b5e5 (patch) | |
| tree | afdc651a319158103e364701395b2a02899a3f82 /app/Models/Feed.php | |
| parent | 76c4a9aec1ae6b11efbeda16e639b47b9a5e793f (diff) | |
Take better advantage of other users refresh
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 4 |
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)) { |
