php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59384 apc_mtime( $key ) would be nice
Submitted: 2010-08-24 12:41 UTC Modified: 2016-11-18 21:51 UTC
From: hajo at csphere dot eu Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 5.3.2 OS: independent
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hajo at csphere dot eu
New email:
PHP Version: OS:

 

 [2010-08-24 12:41 UTC] hajo at csphere dot eu
Description:
------------
i have to iterate the whole info array just to obtain a timestamp at which time a cached key was inserted. maybe there should be a function like apc_mtime or apc_key_info whith this information inside.

to cache parsed files and database content such functionality is very important IMO.

Reproduce code:
---------------
http://de3.php.net/manual/en/function.apc-cache-info.php

Expected result:
----------------
a function with a return value or array key/value pair containing the creation date of a cached key

Actual result:
--------------
currently you have to iterate through the apc_cache_info array with a foreach loop or something equivalent. with many keys stored this is time and memory intensive.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 21:51 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-11-18 21:51 UTC] kalle@php.net
APC is no longer supported in favor of opcache that comes bundled with PHP, if you wish to use the user cache, then look at PECL/APCu.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jan 23 15:01:23 2021 UTC