summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-11-23 22:09:28 +0300
committerAndrew Dolgov <[email protected]>2022-11-23 22:09:28 +0300
commit22cb615ba2ab8aff9a126132750bd4fbdd80d52d (patch)
tree38bca404f24f2fa31ab8ac70ce7483431c3d9611 /init.php
parent0c8af4992cb0f7589dcafaad65ada12753c64594 (diff)
add get_mtime()
Diffstat (limited to 'init.php')
-rw-r--r--init.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.php b/init.php
index 95e6f72..0380e66 100644
--- a/init.php
+++ b/init.php
@@ -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;