9 Useful PHP Cache Scripts

  • lyva
  • Apr 09, 2013
  • Comments Off

php-simple-cache

In this PHP script collection we list some useful php cache scripts for website performance.

Caching class

caching-class

With cacheblocks you can cache html/strings/arrays and object in files on your server. This will decrease execution time and server load dramatically. With this script you easily can make your PHP scripts 50% faster by caching SQL results, big arrays or for example HTML tables that contain dynamic content. This class can do caching in two manners.

CacheManager

cachemanager

Easily and safely cache files to Memcache, APC , or your file system with CacheManager. Adapters making it easily to add onto it and expand it’s capabilities.

anySize – Caching image resizer

anysize-caching-image-resizer

anySize is a lightweight, drop-in, fully automated, caching, make-you-coffee-and-serve-it-in-bed script that lets you request and generate images (jpg, gif or png) of any size.

PHP MySql Caching Class

php-mysql-caching-class

MySQL caching class is a lightweight PHP 5 class that allows individual query file caching without the need of server extensions.

PHP Metameric Cache

php-metameric-cache

PHP Metameric Cache is a disk based cache mechanism that lets you create cache for selected parts of PHP page or PHP website quickly and easily. It does not depend on URL structure of your website. You can store each cached part with a unique name and then retrieve it or delete it on requirement.

PHP Simple Cache

php-simple-cache

Use PHP Simple Cache to generate and serve static cached pages for PHP websites automatically. Fully configurable, plug and play, extremely easy to use cache script that can be turned on/off for individual pages. Cache can be deleted for single page or all cached pages can be deleted if needed. Speed up website loading time and make your website more responsive, faster, yet always server fresh content to users.

AutoCache

autocache

Regardless of the web application you’re using, AutoCache should be able to speed it up. It will sit between PHP and your PHP web application and watch what data passes by, so that if there is a duplicate request in the future (within a set timeframe), then instead of letting the app run its course again, we’ll serve a saved/cached response instead. This means less database queries and less processing per request (as pulling an object from cache usually takes < 1ms).

CachedTwit

cached-twit

A small lightweight class for loading in Twitter posts from any account via the RSS API and caching them to your local system at an interval you provide that is triggered when the tweets are called for. This script will work to 1-20 of the most current tweets. If you need more of that or the ability to pull older/specific tweets, you should look into a full Twitter API plugin. They will be a little more complex, but should handle that.

SuperCache

supercache

SuperCache is an easy caching API for every project you might need. These classes reduces server load by using cache. There are three types of caching APC , Memcache and FILE /SESSION cache. APC and Memcache uses the PHP Modules so make sure you install them first before using it. File cache doesn’t need anything special.




Related articles