Ejemplo n.º 1
0
 protected function renderCacheInfo()
 {
     if (defined('SHOW_CACHE_DUMP') && SHOW_CACHE_DUMP) {
         $test = GeneralCache::getEntry('iamatestidentifier', 0);
         GeneralCache::cacheEntry('iamatestidentifier', $test + 1);
         $cacheJson = GeneralCache::dumpPhpCachedItemsAsJson();
         $cacheJson = str_replace("{", "{<br/>", $cacheJson);
         $cacheJson = str_replace("}", "}<br/>", $cacheJson);
         $cacheJson = str_replace(",", ",<br/>", $cacheJson);
         return "<strong>PHP-Cache content:</strong><br/>" . $cacheJson . "<br />";
     } else {
         return "";
     }
 }