喜悦国际村 
» 游客:  注册 | 登录 | 搜索 | 统计 | 帮助

RSS 订阅当前论坛  

喜悦证交所已经关闭

上一主题 下一主题
 27  3/3  <  1  2  3 
     
标题: 模版为什么不用smarty  
 
mchinese
注册会员
Rank: 2
一般会员



UID 19234
精华 0
积分 109
帖子 109
金钱 109 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2003-3-28
状态 离线
[广告]: q m
$this->compile_check = true;

改为false就不会检查重新编译了。
如果网站正式发布了模板不修改了就应该设为false.
2003-9-3 03:07 AM#21
查看资料  发短消息  顶部
 
mchinese
注册会员
Rank: 2
一般会员



UID 19234
精华 0
积分 109
帖子 109
金钱 109 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2003-3-28
状态 离线
[推荐阅读] 关于session的怪问题?
Once an application is put into production (templates won't be changing), the compile_check step is no longer needed. Be sure to set $compile_check to "false" for maximal performance.
....................................................................................

$compile_check
Upon each invocation of the PHP application, Smarty tests to see if the current template has changed (different time stamp) since the last time it was compiled. If it has changed, it recompiles that template. If the template has not been compiled, it will compile regardless of this setting. By default this variable is set to true. Once an application is put into production (templates won't be changing), the compile_check step is no longer needed. Be sure to set $compile_check to "false" for maximal performance. Note that if you change this to "false" and a template file is changed, you will *not* see the change since the template will not get recompiled. If caching is enabled and compile_check is enabled, then the cache files will get regenerated if an involved template file or config file was updated. See $force_compile or clear_compiled_tpl.
2003-9-3 03:10 AM#22
查看资料  发短消息  顶部
 
lingtoss (lingtoss)
中级会员
Rank: 3Rank: 3
老会员



UID 17173
精华 0
积分 320
帖子 322
金钱 320 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2002-10-22
来自 福建■■
状态 离线
[推荐阅读] 奇怪的问题,请教大家
eval 比 替换要快~
2003-9-3 05:19 AM#23
查看资料  发短消息  顶部
 
slime
中级会员
Rank: 3Rank: 3
中级会员



UID 19895
精华 1
积分 404
帖子 366
金钱 394 喜悦币
威望 10
人脉 0
阅读权限 30
注册 2003-4-26
状态 离线
[推荐阅读] 大家到这里看看,有什么意见尽管提!
唉,争了这么久都没看到结果,谁能做个测试吗?



全国第四大IDC商务中国(www.bizcn.com)代理价虚拟主机一律五折;
www.zhongwenshouce.com开展XOOPS源码阅读活动
有学习,才有进步
2003-9-3 10:29 AM#24
查看资料  发短消息  顶部
 
terpomo (terpomo)
注册会员
Rank: 2
一般会员



UID 21223
精华 0
积分 73
帖子 73
金钱 73 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2003-6-30
状态 离线
[推荐阅读] 帮忙看看什么意思?刚学
正在考虑中.............
2003-9-3 05:27 PM#25
查看资料  访问主页  发短消息  顶部
 
terpomo (terpomo)
注册会员
Rank: 2
一般会员



UID 21223
精华 0
积分 73
帖子 73
金钱 73 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2003-6-30
状态 离线
[推荐阅读] 求助关于邮件发送的问题


QUOTE:
最初由 cherishlyc 发布
[B]smarty compile生成很多东西
可否把它们删除??不要留在服务器上 [/B]
其实你不需要删除的,这些文件很小,而且完全由Smarty管理,
利用这些文件Smarty将提高十倍以上的速度。

另外
$this->compile_check = true;
设置为false并不会不产生这此文件,而是不更新这些文件,这可能造成你对模板的修改不再有效
2003-9-3 05:30 PM#26
查看资料  访问主页  发短消息  顶部
 
3945
该用户已被删除









[推荐阅读] 在线等高手指教邮件发送的问题
*** 作者被禁止或删除 内容自动屏蔽 ***
2004-12-27 04:28 AM#27
顶部
 27  3/3  <  1  2  3 
     


  可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题 | 开通个人空间  


 




Powered by Discuz! 6.1.0  © 2001-2010 Comsenz Inc.
Processed in 0.025569 second(s), 6 queries

(冀ICP备05009913号) 管理员:sadly 邮箱/MSN: sadly@phpx.com QQ:824008(长隐) 清除 Cookies - - Archiver - WAP