mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
fixes #3850: RestfulService not using the cache
This commit is contained in:
parent
add010e383
commit
4bda7943a7
@ -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