PHP Simple Cache

Buy from CodeCanyon


Cache is off for this page.

This page will not be cached.

Cache Off - Test

Try passing PHP variables to this page.

Variable 11 Variable 22

Implementation

Use php code below at top of every page that you do not want to be cached.

$nocache="on";
include("cache.php");

Or simply do not include cache.php in that page.

Or If you have included cache.php file in project settings file, config file or db file then use this single line of code in every page that you do not want to be cached, before cache.php file inclusion.

$nocache="on";

For Example: If your config.php file contains cache.php included, then turn in off in pages like below;

$nocache="on";
include("config.php"); // assuming that config.php file contains > include("cache.php"); code

© 2013 TechMynd