Прлная очистка кеша в xcache и APC. Требуется тестирование. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@441 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
glix08 2012-07-05 21:16:23 +00:00
commit d571853910
2 changed files with 19 additions and 3 deletions

View file

@ -874,9 +874,16 @@ class cache_apc extends cache_common
} }
function rm ($name = '') function rm ($name = '')
{
if ($name)
{ {
return apc_delete($this->prefix . $name); return apc_delete($this->prefix . $name);
} }
else
{
return apc_clear_cache();
}
}
function is_installed () function is_installed ()
{ {
@ -921,9 +928,18 @@ class cache_xcache extends cache_common
} }
function rm ($name = '') function rm ($name = '')
{
if ($name)
{ {
return xcache_unset($this->prefix . $name); return xcache_unset($this->prefix . $name);
} }
else
{
xcache_clear_cache(XC_TYPE_PHP, 1);
xcache_clear_cache(XC_TYPE_VAR, 1);
return;
}
}
function is_installed () function is_installed ()
{ {

View file

@ -56,7 +56,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
// Increase number of revision after update // Increase number of revision after update
$bb_cfg['tp_version'] = '2.5 Beta'; $bb_cfg['tp_version'] = '2.5 Beta';
$bb_cfg['tp_release_state'] = 'R440'; $bb_cfg['tp_release_state'] = 'R441';
$bb_cfg['tp_release_date'] = '06-07-2012'; $bb_cfg['tp_release_date'] = '06-07-2012';
// Database // Database