mirror of
https://github.com/moodle/moodle.git
synced 2025-03-23 09:00:30 +01:00
MDL-37677 Do not display debug info about obsolete string manager caches
This commit is contained in:
parent
a5ec499521
commit
df5d245a05
@ -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 @@ class core_string_manager implements string_manager {
|
||||
if (!$disablecache and !$disablelocal) {
|
||||
$string = $this->cache->get($cachekey);
|
||||
if ($string) {
|
||||
$this->countdiskcache++;
|
||||
return $string;
|
||||
}
|
||||
}
|
||||
@ -6780,12 +6775,8 @@ class core_string_manager implements string_manager {
|
||||
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',
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user