PHP APC(Alternative PHP Cache) is the best leading module for OpCode And User data caching in PHP. Other casing solutions like memcache provide a good competition for APC cache. But still APC have its advantage in simplicity and well provided documentation. One another advantage of APC is it provide an admin interface apc.php. This interface provide most of the options for viewing status and basic management options. But this admin interface is missing lot of options. APC Admin is created just to resolve that problem and resolve management capability.
Need for Server Side Caching in Web Applications
As we all know HTTP requests are handled by web servers(Like Apache,IIS,nginx etc). The server handle HTTP/S request in following basic steps.
1. Identify the files need to be executed.
2. Read data in files into memory.
3. Compile source files and generate OpCode
4. Execute the compiled data and return results.
In most cases the costly step is step2(Reading data from disk) since it demands I/O operation from disk much slower than memory. These 3 steps are repeated for all requests coming to a web server. When OpCode Caching is enabled,it simple story complied OpCode from step3 into memory. If same request executed again, Web Server can utilize OpCode saved in memory rather than executing costly steps(step2 and step3).
APC Admin Features
APC admin developed to provide additional options other than that provided by apc.php. APC Admin is featured with real-time charts and additional options to manage APC Cache.
1. Realtime Statistics.
APC Admin provide real-time statistics including OpCode & UserCache distribution and memory mapping. APC Admin provides an real time charts independently for OpCode and user caches. This real-time comparison of Hits and Misses provide an overview of efficiency of caching. Higher Hits/Misses ration indicate higher cache efficiency and memory utilization. APC Admin also provide memory mapping and fragmentation mapping.
2. Manage Cache Entrys.
Original apc.php admin interface lack option to manage cache. APC Admin provide options to add/remove files and directory’s into OpCode cache. It is very useful when deploying updates to existing web application without dropping any user requests.
3. APC Configuration and Version Infomration.
APC Admin display APC configuration and version information as similar to apc.php.
APC Admin installation
1. Download APC Admin From Following link.
2. Just Copy apc.php to your server. navigate to same file to start using APC Admin.
APC Admin is not completely tested in all testing environments. Please free to post any bugs or suggestions.