- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
phpcms缓存使用总结(memcached、eaccelerator、shm)(国外英文资料)
phpcms缓存使用总结(memcached、eaccelerator、shm)
A template compilation cache
Reference documents include/globalfuncphp and include/templatefuncphp
The principle of template cache is simple if the template is first compiled directly compile it, if not the first is to compile the template file ($tplfile) and template cache file ($compiledtplfile) modify time if the template cache file modification time is greater than the compiled template file is compiled template or not compile the template to improve the programs execution efficiency
Copy code
The code reads as follows:
Function template ($module = phpcms, $template = index)
{
Global $CONFIG;
$compiledtplfile = $CONFIG[templatescachedir]$module_$templatetplphp;
If ($CONFIG[templaterefresh])
{
$tplfile = PHPCMS_ROOT/templates/$CONFIG[defaulttemplate]/$module/$templatehtml;
If (! File_exists ($compiledtplfile) || @filemtime ($tplfile) @filemtime ($compiledtplfile))
{
Require_once PHPCMS_ROOT/include/templatefuncphp;
Template_refresh ($tplfile, $compiledtplfile);
}
}
Return $compiledtplfile;
}
B generates static cache files within a dynamic page
Similar to the caching principle of C, the name of the file generated here is relatively fixed
Take the question module as an example
For access
This directory contains indexphp files in the current directory to determine whether there is a file called index_cachehtml if there is no failure period directly to include this file or Private Const SMART_INVALID_BUFFER As dynamic Long = 4 Bad buffer (null invalid addr..) read after the data saved as index_cachehtml file for the next use.
What is in the file indexphp?
Copy code
The code reads as follows:
PHP?
Require_once /include/commonincphp;
$lastedittime = @filemtime (index_cachehtml);
$lastedittime = $PHP_TIME$lastedittime;
$autoupdatetime = intval ($MOD[autoupdate]); //$MOD[autoupdate] comes from the contents of the cache file data/cache/wenba_settingphp
If (file_exists (index_cachehtml) $lastedittime$autoupdatetime)
{
Echo includ
您可能关注的文档
- 2011中考物理必备(国外英文资料).doc
- 2011国内大事(国外英文资料).doc
- 2011南昌中考语文试题和评分标准(国外英文资料).doc
- 2011医学考研必记口诀(国外英文资料).doc
- 2011国考时政汇总(国外英文资料).doc
- 2011国考行测答案(国外英文资料).doc
- 2011届高三化学三轮总复习重点突破综合测试 化学实验(国外英文资料).doc
- 2011年12月《心理健康辅导员》认证考试试卷12-17(国外英文资料).doc
- 2011年8月全局重点工作安排(国外英文资料).doc
- 2011年8月水泥培训知识(国外英文资料).doc
- 计量规程规范 JJF 2324-2025静电放电电流靶校准规范.pdf
- 《JJF 2324-2025静电放电电流靶校准规范》.pdf
- 山东省泰安市2026届高三上学期期中考试数学含答案.doc
- 浙江省杭州市2025学年第一学期高三年级教学质量检测语文试题卷及答案.doc
- 安徽省皖豫联考2026届高三上学期11月期中考试地理含答案.doc
- 山东省菏泽市A类高中2026届高三第一学期期中考试物理含答案.doc
- 2022年高考语文试卷(上海)(秋考)(解析卷).doc
- 2022年高考历史试卷(河北)(空白卷).doc
- JJF 1025-2025机械秤改装技术要求.pdf
- 计量规程规范 JJF 1025-2025机械秤改装技术要求.pdf
原创力文档


文档评论(0)