Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-36363 cache: fixed issue with double parsing keys for stacked loa…

…ders
  • Loading branch information...
commit 4786eca8f24e32dc65a5dea2d9116972e315a2c7 1 parent 2c24a25
@samhemelryk samhemelryk authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 cache/classes/loaders.php
View
5 cache/classes/loaders.php
@@ -314,7 +314,10 @@ public function get($key, $strictness = IGNORE_MISSING) {
cache_helper::record_cache_miss($this->storetype, $this->definition->get_id());
}
if ($this->loader !== false) {
- $result = $this->loader->get($parsedkey);
+ // We must pass the original (unparsed) key to the next loader in the chain.
+ // The next loader will parse the key as it sees fit. It may be parsed differently
+ // depending upon the capabilities of the store associated with the loader.
+ $result = $this->loader->get($key);
} else if ($this->datasource !== false) {
$result = $this->datasource->load_for_cache($key);
}
Please sign in to comment.
Something went wrong with that request. Please try again.