google code issues 547 and 432 regarding cache improvements

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9797 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
dragan-dan 2011-11-03 12:54:11 +00:00
parent 68ee366d1c
commit c5673fb7d5
2 changed files with 10 additions and 5 deletions

View file

@ -12,9 +12,12 @@
var $handler = null;
var $keyGroupVersions = null;
function &getInstance($target='object') {
return new CacheHandler($target);
}
function &getInstance($target='object') {
if(!$GLOBALS['__XE_CACHE_HANDLER__'][$target]) {
$GLOBALS['__XE_CACHE_HANDLER__'][$target] = new CacheHandler($target);
}
return $GLOBALS['__XE_CACHE_HANDLER__'][$target];
}
function CacheHandler($target, $info=null) {
if(!$info) $info = Context::getDBInfo();