diff options
author | Andrew Dolgov <[email protected]> | 2022-11-23 22:09:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-11-23 22:09:28 +0300 |
commit | 22cb615ba2ab8aff9a126132750bd4fbdd80d52d (patch) | |
tree | 38bca404f24f2fa31ab8ac70ce7483431c3d9611 /init.php | |
parent | 0c8af4992cb0f7589dcafaad65ada12753c64594 (diff) |
add get_mtime()
Diffstat (limited to 'init.php')
-rw-r--r-- | init.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -44,6 +44,10 @@ class Cache_S3 extends Plugin implements Cache_Adapter { $this->s3->registerStreamWrapper(); } + public function get_mtime(string $filename) { + return filemtime($this->get_full_path($filename)); + } + public function set_dir(string $dir): void { $this->dir = $dir; |