Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix to caching bundle for lhtml purposes (this could cause issues els…

…ewhere though unlikely)
  • Loading branch information...
commit 107617ea3b6aee47f619cbac4db07eabaa11d7a8 1 parent af5657e
@KellyLSB KellyLSB authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 bundles/cache/_bundle.php
View
7 bundles/cache/_bundle.php
@@ -100,7 +100,7 @@ public function timestamp($library, $key) {
public function get($library, $key, $force_reload = false) {
if($this->check($library, $key)) {
if($this->_is_loaded($library, $key) && !$force_reload)
- return $this->cache[$library][$key];
+ return unserialize($this->cache[$library][$key]);
else
return $this->_load($library, $key);
}
@@ -116,8 +116,9 @@ public function _load($library, $key) {
$mkey = md5($key);
if($this->check($library, $key)) {
$data = file_get_contents($this->_cache_path."/$library/$mkey.cache");
- $data = unserialize(base64_decode($data));
- return $this->cache[$library][$key] = $data;
+ $data = base64_decode($data);
+ $this->cache[$library][$key] = $data;
+ return unserialize($data);
}
else return NULL;
}
Please sign in to comment.
Something went wrong with that request. Please try again.