|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59190 apc.cache_by_default in .htaccess not working
Submitted: 2010-05-05 08:57 UTC Modified: 2010-06-01 09:00 UTC
From: php-net at agachi dot name Assigned:
Status: Not a bug Package: APC (PECL)
PHP Version: 5.2.5 OS: CentOS 5.2
Private report: No CVE-ID: None
 [2010-05-05 08:57 UTC] php-net at agachi dot name
Trying to disable the caching of PHP files for a certain directory using the php_flag directive in .htaccess, and it's not having any effect.

The apc.cache_by_default option appears to be turned off in the directory, but the files still get cached.

Reproduce code:
.htaccess contents:

php_flag apc.cache_by_default 0


phpinfo() run in the mentioned directory:

APC Support	enabled
Version 	3.1.3p1
MMAP Support 	Enabled
MMAP File Mask 	no value
Locking type 	pthread mutex Locks
Revision 	$Revision: 286798 $
Build Date 	May 4 2010 14:31:19

Directive	Local Value	Master Value
apc.cache_by_default	Off	On
apc.canonicalize	On	On
apc.coredump_unmap	Off	Off
apc.enable_cli	Off	Off
apc.enabled	On	On
apc.file_md5	Off	Off
apc.file_update_protection	10	10
apc.filters	no value	no value
apc.gc_ttl	3600	3600
apc.include_once_override	Off	Off
apc.lazy_classes	Off	Off
apc.lazy_functions	Off	Off
apc.max_file_size	1M	1M
apc.mmap_file_mask	no value	no value
apc.num_files_hint	0	0
apc.preload_path	no value	no value
apc.report_autofilter	On	On
apc.rfc1867	Off	Off
apc.rfc1867_freq	0	0
apc.rfc1867_prefix	upload_	upload_
apc.rfc1867_ttl	3600	3600
apc.shm_segments	1	1
apc.shm_size	47	47
apc.stat	On	On
apc.stat_ctime	Off	Off
apc.ttl	14400	14400
apc.use_request_time	On	On
apc.user_entries_hint	0	0
apc.user_ttl	86400	86400
apc.write_lock	On	On

Expected result:
Files in the directory should not get cached	

Actual result:
Files in the directory are getting cached


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-01 09:00 UTC] gopalv82 at yahoo dot com
Weird issue.

I'm not seeing the same issue directly, but do you have any filters defined for your apc install?
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 11 02:01:28 2023 UTC