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

[BUG] Calling flush() on \Phalcon\Cache\Backend\Apcu fails #12934

Closed
ilogs-sepa opened this issue Jul 3, 2017 · 2 comments
Closed

[BUG] Calling flush() on \Phalcon\Cache\Backend\Apcu fails #12934

ilogs-sepa opened this issue Jul 3, 2017 · 2 comments
Assignees
Milestone

Comments

@ilogs-sepa
Copy link

ilogs-sepa commented Jul 3, 2017

Expected and Actual Behavior

Describe what you are trying to achieve and what goes wrong.

I want to clear/purge the complete APCU cache by calling the flush method from the Backend class.
At the moment this just yields the following exception text:

Call to undefined function apc_delete()

The exepcted behaviour is to silently purge what is there to purge.

Seems to be a simple bug.

Details

  • Phalcon version: 3.2.0
  • PHP Version: 7.1.5
@ilogs-sepa ilogs-sepa changed the title [BUG] Calling flush() on [BUG] Calling flush() on \Phalcon\Cache\Backend\Apcu fails Jul 3, 2017
@sergeyklay
Copy link
Contributor

sergeyklay commented Jul 3, 2017

There is two extensions:

  • APC
  • APCU

These extensions provides their own functions:

  • apc_
  • apcu_

To use APC functions like apc_delete (note, not apcu_delete) with APCU extensions you have to install and enable acpu_bc extension. https://pecl.php.net/package/apcu_bc

@sergeyklay sergeyklay added not a bug Reported issue is not a bug and removed not a bug Reported issue is not a bug labels Jul 3, 2017
@sergeyklay sergeyklay reopened this Jul 3, 2017
@sergeyklay sergeyklay self-assigned this Jul 3, 2017
@sergeyklay sergeyklay added this to the unplanned milestone Jul 3, 2017
@sergeyklay
Copy link
Contributor

Fixed in the 3.2.x branch. Feel free to open new issue if the problem appears again. Thank you for contributing.

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

No branches or pull requests

2 participants