1 Introduction
Description: static pages, PHP is to save query results to a static html file, when future user access can directly access the static html files.
Advantages: database cache to reduce the pressure, but the pressure on the server still exists.
Applicable scene: query more frequently, not frequently updated content, you can use static pages, such as: news, articles, etc., but the data changes frequently, such as stocks, weather, etc., is not suitable for static pages
Achieved: Mechanism of binding buffer using ob file_put_contents function to achieve.
ob Buffer: is the server response data to the client, temporary storage space in response to the data.
Open ob Service