diff options
Diffstat (limited to 'classes/diskcache.php')
-rw-r--r-- | classes/diskcache.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/diskcache.php b/classes/diskcache.php index 69b48688c..80c73682f 100644 --- a/classes/diskcache.php +++ b/classes/diskcache.php @@ -238,8 +238,12 @@ class DiskCache implements Cache_Adapter { return $this->adapter->put($filename, $data); } + /** @deprecated we can't assume cached files are local, and other storages + * might not support this operation (object metadata may be immutable) */ public function touch(string $filename): bool { - return $this->adapter->touch($filename); + user_error("DiskCache: called unsupported method touch() for $filename", E_USER_DEPRECATED); + + return false; } public function get(string $filename): ?string { |