Tag Archives: php cache

Recommended Php-cache

PHP DIY – How to Add Caching to ANY website!

In my recent ventures, I have resorted to finding great PHP code to cache my website.

Even if you are not using WordPress, you can still make a simple PHP caching mechanism without the use of WordPress Super Cache.  (Well, all WordPress Super Cache is a PHP cache with user-friendly menus.)

Here’s how to add caching to your website:

Copy and paste the following code and save as “cache.php” in your website root directory:

<?php // Settings $cachedir = ‘cache/’; // Directory to cache files in (keep outside web root) $cachetime = 600

Click Here to Read Full Article

3 Comments