techmynd supports this item


This author's response time can be up to 2 business days.

Popular questions for this item

I have implemented the script but the cache is not working.

Make sure you have included cache script file at the top of your page that you want to cache.

Make sure there is a cache directory in your project with the same name that is defined in the cache script.

Make sure you are using absolute path to the ‘cache directory’ and its correct.

Please read documentation.

What Is Cache and Caching? How will it improve my website performance?

Each time you visit your dynamic website, it will go through a lengthy process to build everything you see on page. Your hosting server will process PHP code which will make numerous calls to your database and then output HTML for your web browser to display. On some websites this could happen between 20 to 200 times per page! We can change that by enabling caching for websites.

If you enable caching only the first visitor will go through this entire process mentioned above. The caching mechanism will save the data and then serve every subsequent visitor the saved page instead of processing scripts and making calls to database. Thus speeding up Website by a huge factor.

If I submit form, will this cache work or will I see a cached copy of page and form submission will have no effect on page?

We have updated the demo to answer this question and there is a form on ‘example cache on – create cache’ page, that you can submit and see the changes. You can post variables, submit form at that page and see if the page is being cached and still form and variables are posted at that page. Answer is simply yes. This is only a matter of “how you use this cache?” It will work. Please see demo.

How about if my website has different URL structure?

URLs can be, or and so on… Cache will work. If not you need to change the following line in cache.php.

return CACHE_PATH . "cache_" .md5($_SERVER['SCRIPT_URI']) . "_" . PAGE_NAME . ".html";

Change SCRIPT_URI to REQUEST_URI so the above line becomes like this:

return CACHE_PATH . "cache_" .md5($_SERVER['REQUEST_URI']) . "_" . PAGE_NAME . ".html";


return CACHE_PATH . "cache_" .md5($_SERVER['REQUEST_URI']);

Show more

Contact the author

This author provides limited support for this item through this item's comments.

Item support includes:

  • Availability of the author to answer questions
  • Answering technical questions about item’s features
  • Assistance with reported bugs and issues
  • Help with included 3rd party assets

However, item support does not include:

  • Customization services
  • Installation services

View the item support policy