Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

doctrinebot opened this issue Sep 27, 2011 · 2 comments
Assignees
Labels

Comments

@doctrinebot
Copy link

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
Copy link
Author

Comment created by @guilhermeblanco:

Fixed in d6e4c8b

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants