Resets the contents of the Optimizer+ shared memory storage. Note: This is not an immediate action. The shared memory storage is reset when a request arrives while the shared memory storage is not being used by a script.
Available since version 3.6
boolean accelerator_reset (void)
Returns TRUE unless the Optimizer+ is disabled.
Provides information on Optimizer+ memory usage and cache statistics and the list of cached PHP scripts.
Available since version 4.0
array accelerator_get_status (void)
The returned array will contain the following elements:
accelerator_enabled - boolean; TRUE if code acceleration is enabled, False otherwise
cache_full - boolean; TRUE if the Optimizer+ cache is full
memory_usage - array; contains information about Optimizer+ memory usage with the following keys:
used_memory - integer; bytes of memory used
free_memory - integer; bytes of memory available for cache
wasted_memory - integer; bytes of memory used by invalid
or outdated code
Wasted memory is reclaimed when the accelerator is reset, or
when the percentage of wasted memory reaches the value of
the <em>max_wasted_percentage</em> directive
current_wasted_percentage - The percentage of wasted opcode cache memory out of total memory available
accelerator_statistics - array; contains current opcode cache usage statistics, with the following keys:
num_cached_scripts - integer; number of cached scripts
max_cached_scripts - integer; maximal number of cached scripts
hits - integer; number of cache "hits" - that is requests for files that had valid cache entries
misses - integer; number of cache "misses" - that is requests for files which were not cached
accelerator_hit_rate - float; ratio between opcode cache hits and misses
blacklist_misses - integer; number of requests to blacklisted files
blacklist_miss_ratio - float; ratio between hits and requests to blacklisted files
last_restart_time - integer; timestamp of the last restart time
scripts - array; Each key in the array is name of an accelerated script. Values are an array with information about the script, with the following keys:
full_path - string; the full path to the script
hits - integer; number of cache hits for this script
memory_consumption - integer; bytes of memory used to cache this script
last_used - string; string representation of the last time this script was fetched from cache. For example "Thu Jan 31 13:37:40 2008"
last_used_timestamp - integer; UNIX timestamp of the last time this script was fetched from cache
timestamp - integer; UNIX timestamp of when the script was cached
© 1999-2013 Zend Technologies, Ltd. All rights reserved.