Remove unused Cache class

Kabuki CMS uses a Cache class to cache objects using APCU, but Pics has never used it.
This commit is contained in:
2023-06-06 12:24:59 +02:00
parent bd03659b39
commit 03ad26655c
2 changed files with 1 additions and 66 deletions

View File

@@ -60,12 +60,8 @@ class MainTemplate extends Template
if (Registry::has('user') && Registry::get('user')->isAdmin())
{
if (class_exists('Cache'))
echo '
<span class="cache-info">Cache info: ', Cache::$hits, ' hits, ', Cache::$misses, ' misses, ', Cache::$puts, ' puts, ', Cache::$removals, ' removals</span>';
if (Registry::has('start'))
echo '<br>
echo '
<span class="creation-time">Page creation time: ', sprintf('%1.4f', microtime(true) - Registry::get('start')), ' seconds</span>';
if (Registry::has('db'))