-
Notifications
You must be signed in to change notification settings - Fork 197
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
apc.use_request_time=0 default is confusing with update and confusing related to apc.php info page #451
Comments
I believe the problematic change here is actually eb28fe1, which switches to using a monotonic clock, which uses a different starting point than |
Change reverted in 8c05c51. @remicollet Would you mind creating another release for this? |
|
Hi @remicollet! It has been almost a year and no new release has been created with @nikic changes to disable the monotonic clock? :) Thanks! |
I, too, would greatly appreciate it if it were reverted to the way it was before, back to the epoch, and no longer monotonic. Or at least if monotonic was only used internally, but the entry details would return epoch, even if it is in milliseconds instead of seconds. For others, if it helps; to display times in a "human readable" way no matter your APC-config, you could use: `function convert_apc_time_to_human($apc_item_time, $output_format='Y-m-d H:i:s'){ $cache_info = apcu_cache_info(); |
|
Although architectually perhaps not the best implementation, we use the mtime given back from apcu_key_info compared to the current
time()
to do purges at certain moments.With the update to APCu 5.1.22 our caching broke down and after a while I figured this was related to the changes made in #391.
A side-effect from this change is also that the times from apcu_key_info return different values. The apc.php info page also now provides confusing results. The access/modified/created at times return times in 1970 / 1971.
I'm not sure if this is the correct place to post this. However I feel that others might run into similar issues while upgrading. I assume it would help if the information page and/or the documentation on the info pages on php.net would reflect the different behavior if
apc.use_request_time=0
, or otherwise that these functions would keep returning the time in the way they did before.If anything is unclear I can provide additional information.
The text was updated successfully, but these errors were encountered: