Read file function & nbsp; read_static_cache ($ cache_name) {& nbsp; if & nbsp; (DEBUG_MODE & nbsp; & amp; & nbsp; 2) & nbsp ;=& nbs read files
Function read_static_cache ($ cache_name)
{
If (DEBUG_MODE & 2) = 2)
{
Return false;
}
Static $ result = array ();
If (! Empty ($ result [$ cache_name])
{
Return $ result [$ cache_name];
}
$ Cache_file_path = ROOT_PATH. '/temp/static_caches/'. $ cache_name. '. php ';
If (file_exists ($ cache_file_path ))
{
Include_once ($ cache_file_path );
$ Result [$ cache_name] = $ data;
Return $ result [$ cache_name];
}
Else
{
Return false;
}
}
Variable $ data. assign a value if it is not defined.
------ Solution --------------------
Check the temporary file ROOT_PATH. '/temp/static_caches/'. $ cache_name. '. php'.
There should be an array of $ data
------ Solution --------------------
Read the cached content, which is the file cache. The cached content is $ data = xxxx.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service