apc

Alternative PHP Cache is a free, open source (PHP license) framework that optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in shared memory. APC is quickly becoming the de-facto standard PHP caching mechanism as it will be included built-in to the core of PHP starting with PHP 5.4.

Alternative PHP Cache on Wikipedia

Cache all CakePHP find queries

I have been adding some cache to Infinitas recently and found it rather difficult to cache all find queries without having to overload and rewrite the entire Model::find() method. While its not the most complicated method in the world, its not DRY rewriting it and some time in the future its likely to bite me in the arse when something changes.

A basic way to cache the queries is as follows:

Read more...

PHP APC - make your app super fast!

One of the many advantages of using Ubuntu over windows is the ability to install and test out all the plug-ins available for PHP. One of them being APC (Alternative PHP Cache).

I just upgraded to the latest Ubuntu 10.10 and figured I would take a quick screen shot, for anyone that is doubting how much something like APC can affect an application. When I first found out about them, I did not t…

Read more...

No more posts