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

Comments

Projects
None yet
2 participants
@ilogs-sepa

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 from [BUG] Calling flush() on to [BUG] Calling flush() on \Phalcon\Cache\Backend\Apcu fails Jul 3, 2017

@sergeyklay

This comment has been minimized.

Show comment
Hide comment
@sergeyklay

sergeyklay Jul 3, 2017

Member

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

Member

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 closed this Jul 3, 2017

@sergeyklay sergeyklay added Not a bug and removed 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

This comment has been minimized.

Show comment
Hide comment
@sergeyklay

sergeyklay Jul 3, 2017

Member

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

Member

sergeyklay commented Jul 3, 2017

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

@sergeyklay sergeyklay closed this Jul 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment