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:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user