Skip to content

Commit 09ce7e6

Browse files
committed
apc config for drupal
1 parent 25c2b5c commit 09ce7e6

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

install/0.9.7/rhel/apc.ini

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
; Enable apc extension module
2+
extension = apc.so
3+
4+
; Options for the APC module version >= 3.1.3
5+
; See http://www.php.net/manual/en/apc.configuration.php
6+
7+
; This can be set to 0 to disable APC.
8+
apc.enabled=1
9+
; The number of shared memory segments to allocate for the compiler cache.
10+
apc.shm_segments=1
11+
; The size of each shared memory segment, with M/G suffix
12+
apc.shm_size=128M
13+
; A "hint" about the number of distinct source files that will be included or
14+
; requested on your web server. Set to zero or omit if you are not sure;
15+
apc.num_files_hint=1024
16+
; Just like num_files_hint, a "hint" about the number of distinct user cache
17+
; variables to store. Set to zero or omit if you are not sure;
18+
apc.user_entries_hint=4096
19+
; The number of seconds a cache entry is allowed to idle in a slot in case this
20+
; cache entry slot is needed by another entry.
21+
apc.ttl=0
22+
; use the SAPI request start time for TTL
23+
apc.use_request_time=1
24+
; The number of seconds a user cache entry is allowed to idle in a slot in case
25+
; this cache entry slot is needed by another entry.
26+
apc.user_ttl=7200
27+
; The number of seconds that a cache entry may remain on the garbage-collection list.
28+
apc.gc_ttl=3600
29+
; On by default, but can be set to off and used in conjunction with positive
30+
; apc.filters so that files are only cached if matched by a positive filter.
31+
apc.cache_by_default=1
32+
; A comma-separated list of POSIX extended regular expressions.
33+
apc.filters
34+
; The mktemp-style file_mask to pass to the mmap module
35+
apc.mmap_file_mask=/tmp/apc.XXXXXX
36+
; This file_update_protection setting puts a delay on caching brand new files.
37+
apc.file_update_protection=2
38+
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
39+
apc.enable_cli=0
40+
; Prevents large files from being cached
41+
apc.max_file_size=1M
42+
; Whether to stat the main script file and the fullpath includes.
43+
apc.stat=1
44+
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making
45+
; sure inodes have not changed since the last stat. APC will normally only check mtime.
46+
apc.stat_ctime=0
47+
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
48+
apc.canonicalize=0
49+
; With write_lock enabled, only one process at a time will try to compile an
50+
; uncached script while the other processes will run uncached
51+
apc.write_lock=1
52+
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
53+
apc.report_autofilter=0
54+
; RFC1867 File Upload Progress hook handler
55+
apc.rfc1867=0
56+
apc.rfc1867_prefix =upload_
57+
apc.rfc1867_name=APC_UPLOAD_PROGRESS
58+
apc.rfc1867_freq=0
59+
apc.rfc1867_ttl=3600
60+
; Optimize include_once and require_once calls and avoid the expensive system calls used.
61+
apc.include_once_override=0
62+
apc.lazy_classes=0
63+
apc.lazy_functions=0
64+
; Enables APC handling of signals, such as SIGSEGV, that write core files when signaled.
65+
; APC will attempt to unmap the shared memory segment in order to exclude it from the core file
66+
apc.coredump_unmap=0
67+
; Records a md5 hash of files.
68+
apc.file_md5=0
69+
; not documented
70+
apc.preload_path

0 commit comments

Comments
 (0)