Jump to content

caching, or not?


aim25

Recommended Posts

When dealing with a large amount of pages, is it better to have them made and saved (cached), or to have them dynamically created every time?

Caching certainly does take quite a bit of load off of the server. It is definitely quicker, but it's good to make an efficient caching system that doesn't stay overly static. Also, there are different levels that you can cache at, mainly two, the views and the query results from databases. Either level of these will speed up your pages.
Link to comment
https://forums.phpfreaks.com/topic/66961-caching-or-not/#findComment-335875
Share on other sites

The short answer: caching.

 

And not just whole pages or DB results, also part of views and objects. If you construct objects from store, whether it be a RDBMS or an XML file or something else, it's usually worth caching them.

 

Note that RDBMS usually have a result caching system of their own.

Link to comment
https://forums.phpfreaks.com/topic/66961-caching-or-not/#findComment-336004
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.