mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 04:24:41 +01:00
* API/Admin: fixed not working Admin >> Clear cache for default APC(u) and files backends
This commit is contained in:
parent
f24915a23c
commit
5a8f987eb1
@ -570,9 +570,7 @@ class egw_cache
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$keys = array($level);
|
if (!$provider->flush(self::keys($level, $app)))
|
||||||
if ($app) $keys[] = $app;
|
|
||||||
if (!$provider->flush($keys))
|
|
||||||
{
|
{
|
||||||
if ($level == self::INSTANCE)
|
if ($level == self::INSTANCE)
|
||||||
{
|
{
|
||||||
@ -628,11 +626,11 @@ class egw_cache
|
|||||||
* Get keys array from $level, $app and $location
|
* Get keys array from $level, $app and $location
|
||||||
*
|
*
|
||||||
* @param string $level egw_cache::(TREE|INSTANCE) or instance_id
|
* @param string $level egw_cache::(TREE|INSTANCE) or instance_id
|
||||||
* @param string $app
|
* @param string $app=null
|
||||||
* @param string $location
|
* @param string $location=null
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
static public function keys($level,$app,$location)
|
static public function keys($level, $app=null, $location=null)
|
||||||
{
|
{
|
||||||
static $tree_key = null;
|
static $tree_key = null;
|
||||||
|
|
||||||
@ -668,7 +666,13 @@ class egw_cache
|
|||||||
$level_key = self::$instance_key;
|
$level_key = self::$instance_key;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return array($level_key, $app, $location);
|
$keys = array($level_key);
|
||||||
|
if (isset($app))
|
||||||
|
{
|
||||||
|
$keys[] = $app;
|
||||||
|
if (isset($location)) $keys[] = $location;
|
||||||
|
}
|
||||||
|
return $keys;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user