Permalink
Browse files

MDL-38565 cache: improve stats gathering

  • Loading branch information...
1 parent 312ad65 commit 1a038ed7d9a44678601411ff902b9f5864e7aacd Sam Hemelryk committed Apr 17, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 cache/classes/loaders.php
@@ -1661,7 +1661,7 @@ public function get($key, $strictness = IGNORE_MISSING) {
$setaftervalidation = false;
if ($result === false) {
if ($this->perfdebug) {
- cache_helper::record_cache_miss($this->storetype, $this->get_definition()->get_id());
+ cache_helper::record_cache_miss('**static session**', $this->get_definition()->get_id());
}
if ($this->get_loader() !== false) {
// We must pass the original (unparsed) key to the next loader in the chain.
@@ -1673,7 +1673,7 @@ public function get($key, $strictness = IGNORE_MISSING) {
}
$setaftervalidation = ($result !== false);
} else if ($this->perfdebug) {
- cache_helper::record_cache_hit($this->storetype, $this->get_definition()->get_id());
+ cache_helper::record_cache_hit('**static session**', $this->get_definition()->get_id());
}
// 5. Validate strictness.
if ($strictness === MUST_EXIST && $result === false) {
@@ -1715,7 +1715,7 @@ public function get($key, $strictness = IGNORE_MISSING) {
public function set($key, $data) {
$this->check_tracked_user();
if ($this->perfdebug) {
- cache_helper::record_cache_set($this->storetype, $this->get_definition()->get_id());
+ cache_helper::record_cache_set('**static session**', $this->get_definition()->get_id());
}
if (is_object($data) && $data instanceof cacheable_object) {
$data = new cache_cached_object($data);

0 comments on commit 1a038ed

Please sign in to comment.