Skip to content

Loading…

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

Closed
doctrinebot opened this Issue · 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
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.