From 03ad26655c4cbc2ea99d6942a674e704f568e40e Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Tue, 6 Jun 2023 12:24:59 +0200 Subject: [PATCH] Remove unused Cache class Kabuki CMS uses a Cache class to cache objects using APCU, but Pics has never used it. --- models/Cache.php | 61 -------------------------------------- templates/MainTemplate.php | 6 +--- 2 files changed, 1 insertion(+), 66 deletions(-) delete mode 100644 models/Cache.php diff --git a/models/Cache.php b/models/Cache.php deleted file mode 100644 index 33e650f..0000000 --- a/models/Cache.php +++ /dev/null @@ -1,61 +0,0 @@ -isAdmin()) { - if (class_exists('Cache')) - echo ' - Cache info: ', Cache::$hits, ' hits, ', Cache::$misses, ' misses, ', Cache::$puts, ' puts, ', Cache::$removals, ' removals'; - if (Registry::has('start')) - echo '
+ echo ' Page creation time: ', sprintf('%1.4f', microtime(true) - Registry::get('start')), ' seconds'; if (Registry::has('db'))