mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3851 from giovdk21/patch-1
fixes #3850: RestfulService not using the cache
This commit is contained in:
commit
9d64246a06
@ -184,7 +184,7 @@ class RestfulService extends ViewableData implements Flushable {
|
||||
// Check for unexpired cached feed (unless flush is set)
|
||||
//assume any cache_expire that is 0 or less means that we dont want to
|
||||
// cache
|
||||
if($this->cache_expire > 0 && self::$flush
|
||||
if($this->cache_expire > 0 && !self::$flush
|
||||
&& @file_exists($cache_path)
|
||||
&& @filemtime($cache_path) + $this->cache_expire > time()) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user