Permalink
Browse files

MDL-37677 Do not display debug info about obsolete string manager caches

  • Loading branch information...
1 parent a5ec499 commit df5d245a05483f3491aebf23a186f5365105b3c1 @mudrd8mz mudrd8mz committed Jan 24, 2013
Showing with 0 additions and 9 deletions.
  1. +0 −9 lib/moodlelib.php
View
@@ -6465,10 +6465,6 @@ class core_string_manager implements string_manager {
protected $cache;
/** @var int get_string() counter */
protected $countgetstring = 0;
- /** @var int in-memory cache hits counter */
- protected $countmemcache = 0;
- /** @var int on-disk cache hits counter */
- protected $countdiskcache = 0;
/** @var bool use disk cache */
protected $usecache;
/** @var array limit list of translations */
@@ -6554,7 +6550,6 @@ public function load_component_strings($component, $lang, $disablecache=false, $
if (!$disablecache and !$disablelocal) {
$string = $this->cache->get($cachekey);
if ($string) {
- $this->countdiskcache++;
return $string;
}
}
@@ -6780,12 +6775,8 @@ public function get_string($identifier, $component = '', $a = NULL, $lang = NULL
public function get_performance_summary() {
return array(array(
'langcountgetstring' => $this->countgetstring,
- 'langcountmemcache' => $this->countmemcache,
- 'langcountdiskcache' => $this->countdiskcache,
), array(
'langcountgetstring' => 'get_string calls',
- 'langcountmemcache' => 'strings mem cache hits',
- 'langcountdiskcache' => 'strings disk cache hits',
));
}

0 comments on commit df5d245

Please sign in to comment.