Professional Documents
Culture Documents
PHP M
PHP M
PHP M
1. The lexical parser compiles the script into opcode (sometimes also
referred to as bytecode).
apc.enabled = 1
apc.stat = 0
apc.stat_ctime = 0
apc.slam_defense = 0
apc.write_lock = 1
apc.ttl = 7200
apc.optimization = 0
APC Caching Strategies
• As shown in Figure, fragmentation occurs when items are removed
from the middle of the cache, leaving a gap that is either not big
enough to hold another item, or that holds an item but leaves a small
gap.
• APC has two settings that provide control over exactly what is cached:
• apc.cache_by_default — This controls whether to cache by default.
• apc.filters — This lets you supply a comma-separated list of regexes to
control what is cached and what isn’t.
• If cached_by_default is set to zero, the regexes in apc.filters can be
prepended with a +, indicating that any file matching the pattern
should be cached.
• Conversely, if cache_by_default is set to one, the regexes can be
prepended with a -, telling APC not to cache any matches.
• So, if you want to cache everything except the contents of the /admin
directory and a particularly large script, you could use the following:
• Storing Sessions
• Storing Sessions in memcache/membase
• Using Shared Memory or tmpfs
• Session AutoStart
• Sessions and Caching
• Following table shows four possible values for session.cache_limiter, along with the HTTP
headers that they cause to be send.