diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-25 14:42:59 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-25 14:42:59 -0400 |
commit | a8b7f0d0db2aa64efb6d176de321402d1f5e5bdb (patch) | |
tree | 723798498c591076092e825d4b5ddee825cf252b /src/web/core/core.php | |
parent | update website min width, fix pre elements expanding too far (diff) | |
download | website-a8b7f0d0db2aa64efb6d176de321402d1f5e5bdb.tar.gz website-a8b7f0d0db2aa64efb6d176de321402d1f5e5bdb.tar.bz2 website-a8b7f0d0db2aa64efb6d176de321402d1f5e5bdb.zip |
generate array of file time stamps for production
Diffstat (limited to 'src/web/core/core.php')
-rw-r--r-- | src/web/core/core.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/core/core.php b/src/web/core/core.php index f1ce07e..feaecdf 100644 --- a/src/web/core/core.php +++ b/src/web/core/core.php @@ -25,8 +25,9 @@ abstract class Core { { if (ENVIRONMENT == 'devlopment') return time(); - $path = PHP_ROOT . '/' . $path; - return @filemtime($path); + if (isset(FILE_TIMES[$path])) + return FILE_TIMES[$path]; + return 0; } /** |