: This article mainly introduces PHP Cache-related functions. if you are interested in the PHP Tutorial, refer to it. Cache is the public information stored on the server. The cache is the same as the server. when saving the cache, you can specify the next update time. for example, if you want to update the cache once every 5 minutes, you can record the last update time. compared with the current time, if it takes more than 5 minutes, it reads the database and updates the cache. Otherwise, it directly reads the cached data. of course, the cache needs to be activated by the client user only once. 
 
Cache can accelerate the display speed.
 
Void ob_start ()
 
Function: enable the input buffer.
 
Note: When the buffer zone is activated, all non-file header information from PHP is not sent, but stored in the internal buffer zone. To output the buffer content, you can use ob_end_flush () or flush () to output the buffer content.
 
Void flush (void)
 
Function: refresh the output cache.
 
Note: refresh the buffer of the PHP program, regardless of the circumstances in which PHP is executed (CGI, web server, etc ). This function sends all the output of the program so far to the user's browser.
 
String ob_get_contents (void)
 
Function: returns the content of the output buffer.
 
Note: only get the content of the output buffer, but do not clear it. if the output buffer is invalid, it will be returned.FALSE.
 
Intob_get_length (void)
 
Function: return the length of the output buffer.
 
Description: return the length of the output buffer.FALSE-- If the buffer does not work.
 
Boolob_end_clean (void)
 
Function: Clears (erased) the buffer and disables the output buffer.
 
Note: This function discards the content of the top-level output buffer and closes the buffer. To further process the buffer content, you must call ob_get_contents before ob_end_clean (), because when ob_end_clean () is called, the buffer content is discarded.
 
Voidob_implicit_flush ([int$flag= True])
 
Function: enable/disable absolute sending.
 
Note: the buffer zone is disabled by default. After absolute output is enabled, the output of each script is directly sent to the browser, and you do not need to call flush ().
 
The above describes the PHP Cache-related functions, including the content, and hope to be helpful to friends who are interested in the PHP Tutorial.