Quote:
Originally Posted by nascartr
Did you try flushing the cache after the change?
|
I found that the problem was that I don't have permission to use the flush function.
An easy way to fix this I found was to write my own flush function.
If anyone wants it here it is.
Line 359 in file
class_activecache_methods.php is where the eAccelerator Flush function starts.
Replace:
PHP Code:
function flush($silent = false)
{
$success = '__vBOptimise_EA_Test_' . rand(3,999) . '__';
$this->set('vBOptimiseTest', $success);
@eaccelerator_clear();
if ($this->fetch('vBOptimiseTest') == $success)
{
print_cp_message('vB Optimise: Your eAccelerator requires you to specify permission to this directory to allow vB Optimise to clear your cache. For more information please visit <a href="http://bart.eaccelerator.net/doc/phpdoc/eAccelerator/_info_php.html#functioneaccelerator_clear" target="_blank"></a>.');
}
}
With:
PHP Code:
function flush($silent = false)
{
foreach (eaccelerator_list_keys() AS $cacheitem)
{
$key = ( strpos($cacheitem['name'], ':') === 0 ? substr($cacheitem['name'], 1) : $cacheitem['name'] );
eaccelerator_rm($key);
}
}
THIS IS FOR EACCELERATOR USERS ONLY