1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 02:24:08 +02:00

Correct library cache file name.

This commit is contained in:
Cameron
2017-01-27 13:50:44 -08:00
parent 02b6a235c4
commit ad7efe78a9
3 changed files with 5 additions and 5 deletions

View File

@@ -832,7 +832,7 @@ class e_library_manager
if(!isset($loaded[$name]))
{
$cache = e107::getCache();
$cacheID = 'library_manager_' . md5($name);
$cacheID = 'Library_' . e107::getParser()->filter($name,'file');
$cached = $cache->retrieve($cacheID, false, true, true);
if($cached)
@@ -843,8 +843,8 @@ class e_library_manager
if(!varset($library, false))
{
$library = $this->detect($name);
$cacheData = serialize($library);
$cache->set($cacheID, $cacheData, true, false, true);
$cacheData = e107::serialize($library,'json');
$cache->set($cacheID, $cacheData, true, true, true);
}
// Exit early if the library was not found.