diff options
| author | 2016-10-05 21:03:13 +0200 | |
|---|---|---|
| committer | 2016-10-05 21:03:13 +0200 | |
| commit | 11687f01f87799092954fd00db68aaf581c75ffd (patch) | |
| tree | 735601471324914a9351a2e88291ca6bd8f8ce13 /app/Models/Feed.php | |
| parent | 76c4a9aec1ae6b11efbeda16e639b47b9a5e793f (diff) | |
| parent | 1df76fb6b5bd3dced52bd3b41eda54a518bd399b (diff) | |
Merge pull request #1280 from Alkarex/multiuser-optimisation
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)) { |
