192 |
- |
1 |
; Enable APCu extension module
|
|
|
2 |
extension = apcu.so
|
|
|
3 |
|
|
|
4 |
; This can be set to 0 to disable APCu
|
|
|
5 |
apc.enabled=1
|
|
|
6 |
|
|
|
7 |
; Setting this enables APCu for the CLI version of PHP
|
|
|
8 |
; (Mostly for testing and debugging).
|
|
|
9 |
;apc.enable_cli=0
|
|
|
10 |
|
|
|
11 |
; Sets the path to text files containing caches to load from disk upon
|
|
|
12 |
; initialization of APCu. preload_path should be a directory where each
|
|
|
13 |
; file follows $key.data where $key should be used as the entry name
|
|
|
14 |
; and the contents of the file contains serialized data to use as the value
|
|
|
15 |
; of the entry.
|
|
|
16 |
;apc.preload_path=
|
|
|
17 |
|
|
|
18 |
; The size of each shared memory segment, with M/G suffixe
|
|
|
19 |
;apc.shm_size=32M
|
|
|
20 |
|
|
|
21 |
; The number of seconds a cache entry is allowed to idle in a slot in case
|
|
|
22 |
; this cache entry slot is needed by another entry.
|
|
|
23 |
;apc.ttl=0
|
|
|
24 |
|
|
|
25 |
; The number of seconds that a cache entry may remain on the
|
|
|
26 |
; garbage-collection list.
|
|
|
27 |
;apc.gc_ttl=3600
|
|
|
28 |
|
|
|
29 |
; If you begin to get low on resources, an expunge of the cache
|
|
|
30 |
; is performed if it is less than half full. This is not always
|
|
|
31 |
; a suitable way of determining if an expunge of the cache
|
|
|
32 |
; should be per apc.smart allows you to set a runtime configuration
|
|
|
33 |
; value which is used to determine if an expunge should be run
|
|
|
34 |
; if (available_size < apc.smart * requested_size)
|
|
|
35 |
;apc.smart=0
|
|
|
36 |
|
|
|
37 |
; A "hint" about the number variables expected in the cache.
|
|
|
38 |
; Set to zero or omit if you are not sure;
|
|
|
39 |
;apc.entries_hint=4096
|
|
|
40 |
|
|
|
41 |
; The mktemp-style file_mask to pass to the mmap module
|
|
|
42 |
apc.mmap_file_mask=/tmp/apc.XXXXXX
|
|
|
43 |
|
|
|
44 |
; On very busy servers whenever you start the server or
|
|
|
45 |
; modify files you can create a race of many processes
|
|
|
46 |
; all trying to cache the same data at the same time.
|
|
|
47 |
; By default, APCu attempts to prevent "slamming" of a key.
|
|
|
48 |
; A key is considered "slammed" if it was the last key set,
|
|
|
49 |
; and a context other than the current one set it ( ie. it
|
|
|
50 |
; was set by another process or thread )
|
|
|
51 |
;apc.slam_defense=0
|
|
|
52 |
|
|
|
53 |
; Defines which serializer should be used
|
|
|
54 |
; Default is the standard PHP serializer.
|
|
|
55 |
;apc.serializer='php'
|
|
|
56 |
|
|
|
57 |
; use the SAPI request start time for TTL
|
|
|
58 |
;apc.use_request_time=0
|
|
|
59 |
|
|
|
60 |
; Enables APCu handling of signals, such as SIGSEGV, that write core files
|
|
|
61 |
; when signaled. APCu will attempt to unmap the shared memory segment in
|
|
|
62 |
; order to exclude it from the core file
|
|
|
63 |
;apc.coredump_unmap=0
|