diff options
author | Andrew Dolgov <[email protected]> | 2022-11-24 08:16:56 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-11-24 08:16:56 +0300 |
commit | 3180b358076011d6a65b93bfa9323465447c755d (patch) | |
tree | 78227fa6147ffe0d08d3da2b59b07ae0ed22b768 /classes/diskcache.php | |
parent | 9732d8fc9ff976bea480b663012c6c6ec6dc9f01 (diff) |
deprecate DiskCache->touch()
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 { |