PHP Classes

What is the best PHP cache whole page class?: Cache the whole Web page

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP cache whole page...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP cache whole page class?

Edit

Picture of Mpho Moipolai by Mpho Moipolai - 7 years ago (2016-09-07)

Cache the whole Web page

This request is clear and relevant.
This request is not clear or is not relevant.

+2

I want to cache whole Web pages with a cache script thats not complicated.

Ask clarification

2 Recommendations

AhCache: Store cached data in files

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Axel Hahn by Axel Hahn package author package author Reputation 30 - 7 years ago (2016-09-11) Comment

The ahcache class stores all items that can be serialized (integer, string, arrays, ...). Its main usage is to store a cache for a functionality that was identified as a slow component (with long running queries, fetching external content like rss feed from other websites). To identify outdated content you can use a TTL, or read the age or compare with a file. Cleaning up the cache directory is included too.

Using a php class for caching means: you need to touch the source code. If you don't want to touch any code and have the possibility then use caching modules like mod_cache in apache/ proxy_cache in nginx or a separate caching host, i.e. varnish.


AC full page cache: Capture and cache the output of whole page scripts

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Manuel Lemos by Manuel Lemos Reputation 23325 - 7 years ago (2016-09-08) Comment

You may want to try this class. It can start capturing the page output in the beginning and output it using a registered shutdown function, so you do not need to change much your scripts to cache your pages output.


Recommend package
: 
: