mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
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:
parent
68ee366d1c
commit
c5673fb7d5
2 changed files with 10 additions and 5 deletions
9
classes/cache/CacheHandler.class.php
vendored
9
classes/cache/CacheHandler.class.php
vendored
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue