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

View source


Used by


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>";
    }


Changelog

  • Since: eduTrac SIS 6.2.0

User Contributed Notes

You must log in before being able to contribute a note.