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

Memcache::flush does not delete query keys #12182

Closed
sergeyklay opened this issue Aug 30, 2016 · 1 comment
Closed

Memcache::flush does not delete query keys #12182

sergeyklay opened this issue Aug 30, 2016 · 1 comment
Assignees
Labels
bug A bug report status: medium Medium
Milestone

Comments

@sergeyklay
Copy link
Contributor

sergeyklay commented Aug 30, 2016

Expected and Actual Behavior

The Phalcon\Cache\Backend\Memcache::flush should delete keys by using statsKey

use Phalcon\Cache\Frontend\Data;
use Phalcon\Cache\Backend\Memcache;

$cache = new Memcache(new Data(['lifetime' => 20]), [
    'host'     => 'localhost',
    'port'     => 11211,
    'statsKey' => '_PHCM',
]);

$cache->save('data-flush-1', 1);
$cache->save('data-flush-2', 2);

$cache->flush();

Actual

telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
get _PHCM
VALUE _PHCM 1 56
a:2:{s:12:"data-flush-1";i:1;s:12:"data-flush-2";i:2;}

Expected

telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
get _PHCM
END

Details

  • Phalcon version: 3.0.2-dev
  • PHP Version: 7.0.9
  • Operating System: Ubuntu
  • Installation type: Compiling from source
  • Zephir version: 0.9.4a-dev
  • Server: Nginx
@sergeyklay
Copy link
Contributor Author

Fixed in the 3.0.x branch.

@niden niden added bug A bug report status: medium Medium and removed Bug - Medium labels Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug report status: medium Medium
Projects
None yet
Development

No branches or pull requests

2 participants