Alternative PHP Cache
- Introduction
- Installing/Configuring
- Predefined Constants
- APC Functions
- apc_add — Cache a new variable in the data store
- apc_bin_dump — Get a binary dump of the given files and user variables
- apc_bin_dumpfile — Output a binary dump of cached files and user variables to a file
- apc_bin_load — Load a binary dump into the APC file/user cache
- apc_bin_loadfile — Load a binary dump from a file into the APC file/user cache
- apc_cache_info — Retrieves cached information from APC's data store
- apc_cas — Updates an old value with a new value
- apc_clear_cache — Clears the APC cache
- apc_compile_file — Stores a file in the bytecode cache, bypassing all filters.
- apc_dec — Decrease a stored number
- apc_define_constants — Defines a set of constants for retrieval and mass-definition
- apc_delete_file — Deletes files from the opcode cache
- apc_delete — Removes a stored variable from the cache
- apc_exists — Checks if APC key exists
- apc_fetch — Fetch a stored variable from the cache
- apc_inc — Increase a stored number
- apc_load_constants — Loads a set of constants from the cache
- apc_sma_info — Retrieves APC's Shared Memory Allocation information
- apc_store — Cache a variable in the data store
- APCIterator — The APCIterator class
- APCIterator::__construct — Constructs an APCIterator iterator object
- APCIterator::current — Get current item
- APCIterator::getTotalCount — Get total count
- APCIterator::getTotalHits — Get total cache hits
- APCIterator::getTotalSize — Get total cache size
- APCIterator::key — Get iterator key
- APCIterator::next — Move pointer to next item
- APCIterator::rewind — Rewinds iterator
- APCIterator::valid — Checks if current position is valid
- Alternative PHP Cache
- APCu
- Расширенный отладчик PHP
- PHP bytecode Compiler
- Blenc - BLowfish ENCoder for PHP source scripts
- Обработка и протоколирование ошибок
- htaccess-like support for all SAPIs
- Inclusion hierarchy viewer
- Memtrack
- OPcache
- Управление буфером вывода
- PHP Опции и Информация
- runkit
- Break the silence operator
- uopz
- Weak References
- Windows Cache for PHP
- Hierarchical Profiler
Коментарии
Since APC 3.1.3, there is a bug (http://pecl.php.net/bugs/bug.php?id=16814) which produces warnings like "Potential Cache Slam Averted for Key" when slam defense is on and you're trying to write a key that already exists.
These is not a fix right now for this, but you can change the APC settings from php.ini file like below if possible:
apc.write_lock = 1
apc.slam_defense = 0
Was using Memcache and Memcached extensions, painfully bouncing between faults, failures and shortcomings of each. My two cents: Neither of these old drivers has been a smash hit, repressing and slowly dooming of the true potential and full use of unix memcached.
The pain finally drove to me to try APC's apc_store and apc_fetch. The results? Instant success, no more errors, an order of magnitude (at least) speed boost, plus one less thing (memcached) to run. Nice. Never going back again. Thank y'all.