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/cache | |
parent | 9732d8fc9ff976bea480b663012c6c6ec6dc9f01 (diff) |
deprecate DiskCache->touch()
Diffstat (limited to 'classes/cache')
-rw-r--r-- | classes/cache/adapter.php | 1 | ||||
-rw-r--r-- | classes/cache/local.php | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/classes/cache/adapter.php b/classes/cache/adapter.php index 88dca21b9..a61e5cb83 100644 --- a/classes/cache/adapter.php +++ b/classes/cache/adapter.php @@ -20,7 +20,6 @@ interface Cache_Adapter { * @return int|false Bytes written or false if an error occurred. */ public function put(string $filename, $data); - public function touch(string $filename): bool; public function get(string $filename): ?string; public function get_full_path(string $filename): string; /** diff --git a/classes/cache/local.php b/classes/cache/local.php index 4461ef4ca..62f33662a 100644 --- a/classes/cache/local.php +++ b/classes/cache/local.php @@ -66,10 +66,6 @@ class Cache_Local implements Cache_Adapter { return file_put_contents($this->get_full_path($filename), $data); } - public function touch(string $filename): bool { - return touch($this->get_full_path($filename)); - } - /** * @return false|null|string false if detection failed, null if the file doesn't exist, string mime content type otherwise */ |