DCOM-69: [APC Cache] doFlush does not clear user cache #668

Closed
doctrinebot opened this Issue Sep 27, 2011 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user jforet:

lib\Doctrine\Common\Cache\ApcCache.php

The function "doFlush" only clears opcode cache.
The user cache is never cleared.

To correct it, one solution should be :

protected function doFlush()
{
    $res = false;    
    $bool1 = apc*clear*cache();
    $bool2 = apc*clear*cache('user');
    if ($bool1 && $bool2)
    {
        $res = true;
    }
    return $res;
}
@doctrinebot

Comment created by @guilhermeblanco:

Fixed in d6e4c8b

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label Dec 7, 2015
@doctrinebot doctrinebot closed this Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment