php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #56916 Feature Requests (no-stat with single file flushes)
Submitted: 2006-03-27 00:12 UTC Modified: 2006-10-05 18:09 UTC
From: shawn at digitalpoint dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: Irrelevant OS: Irrelevant
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shawn at digitalpoint dot com
New email:
PHP Version: OS:

 

 [2006-03-27 00:12 UTC] shawn at digitalpoint dot com
Description:
------------
Now that there is the apc.stat flag (which is great BTW), it 
would be handy to have something like apc.stat_filters so you 
could stat some files, but not all.

Another thing that would make this really useful would be 
extend apc_clear_cache() so you can flush just a single file 
from cache (maybe stat is off, but you updated a file and 
don't want to flush everything).


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-27 00:24 UTC] rasmus@php.net
The no-stat only works for absolute-path includes, so anything you include with a relative path (anything that doesn't start with /) will be stat'ed.  Of course, for top-level files you don't have that option, but you could definitely build things such that the changing parts were in an include file.  But yes, I agree, both of these would be useful.
 [2006-03-27 15:29 UTC] shawn at digitalpoint dot com
Another thing that might be nice would be some sort of 
apc.stat_minimum_time parameter.  So you could tell the system 
to maybe stat files once in awhile (like hourly or something), 
but not with every request.
 [2006-10-05 18:09 UTC] gopalv82 at yahoo dot com
The apc.stat_minimum_time parameter idea seemed good at first, but broke down the system completely when multiple dependent files were thrown into the mix. I have similar reservations about single file cache clears.

The current ~2 second window seems acceptable, while in no-stat mode (or hourly stat mode) it is just too high. Rather than go half-way into state differences between disk and cache, I'd prefer to keep status quo. 

Hope you understand.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC