Прлная очистка кеша в 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

@ -875,7 +875,14 @@ class cache_apc extends cache_common
function rm ($name = '')
{
return apc_delete($this->prefix . $name);
if ($name)
{
return apc_delete($this->prefix . $name);
}
else
{
return apc_clear_cache();
}
}
function is_installed ()
@ -922,7 +929,16 @@ class cache_xcache extends cache_common
function rm ($name = '')
{
return xcache_unset($this->prefix . $name);
if ($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 ()

View file

@ -56,7 +56,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
// Increase number of revision after update
$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';
// Database