-
Notifications
You must be signed in to change notification settings - Fork 196
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
Detect if APCu is enabled #43
Comments
I use though that won't help for |
I've seen this by the way, super busy at the minute ... thinking about it ... |
Here is an example, used in ZendFramework
This seems a bit uggly. |
Good point, APCu versions start at 4, thanks @remicollet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to detect if APCu is enabled? I have a factory method which takes care of providing the best cache instance available. Weather I run it from Apache or CLI, I need to detect if ACPu is enabled. With the former APC I could check it with
function_exists('apc_fetch')
orclass_exists('APCIterator')
but now they returntrue
even ifapc.enabled
and/orapc.enable_cli
are set tofalse
.The text was updated successfully, but these errors were encountered: