etsis_Cache_Cookie::getStats ()
Echoes the stats of the cache.
Gives the cache hits, cache misses and cache uptime.
Source file: app/src/Core/Cache/etsis_Cache_Cookie.php
Used by
Uses
- app/functions/core-function.php: file_mod_time()
- app/functions/core-function.php: _t()
- app/functions/core-function.php: _file_get_contents()
Source
public function getStats() { if (!$this->enable) { return false; } echo "<p>"; echo "<strong>" . _t('Cache Hits:') . "</strong> " . _file_get_contents($this->_dir . 'cache_hits.txt') . "<br />"; echo "<strong>" . _t('Cache Misses:') . "</strong> " . _file_get_contents($this->_dir . 'cache_misses.txt') . "<br />"; echo "<strong>" . _t('Uptime:') . "</strong> " . timeAgo(file_mod_time($this->_dir)) . "<br />"; echo "</p>"; }
Expand full source code Collapse full source code View on Github
Changelog
- Since: eduTrac SIS 6.2.0