如何配置、使用和清除Smarty缓存
1、Smarty缓存的配置
$smarty->cache_dir = “/caches/”; //缓存目录
$smarty->caching = true; //开启缓存,为flase的时侯缓存无效
$smarty->cache_lifetime = 60; //缓存时间
2、Smarty缓存的使用和清除
$smarty->display(‘cache.tpl’, cache_id); //创建带ID的缓存
$smarty->clear_all_cache(); //清除所有缓存
$smarty->clear_cache(‘index.htm’); //清除index.tpl的缓存
$smarty->clear_cache(‘index.htm’,cache_id); //清除指定id的缓存
$smarty->cache_dir = “/caches/”; //缓存目录
$smarty->caching = true; //开启缓存,为flase的时侯缓存无效
$smarty->cache_lifetime = 60; //缓存时间
2、Smarty缓存的使用和清除
$smarty->display(‘cache.tpl’, cache_id); //创建带ID的缓存
$smarty->clear_all_cache(); //清除所有缓存
$smarty->clear_cache(‘index.htm’); //清除index.tpl的缓存
$smarty->clear_cache(‘index.htm’,cache_id); //清除指定id的缓存
【如何配置、使用和清除Smarty缓存】相关文章
2. 什么是Smarty变量操作符?如何使用Smarty变量操作符
4. spring+hibernate的配置文件中的主要类有那些?如何配置?
6. Spring如何配置一个bean来从JNDI得到DataSource
8. sort命令的作用和用法
9. abstract 可以和 virtual 一起使用吗?可以和 override 一起使用吗?
10. 职场smart:干的好不如干的巧
本文来源:https://www.mianshiwenti.com/a12931.html
进入下载页面
﹝如何配置、使用和清除Smarty缓存﹞相关内容
- 什么是Smart Navigation?
- short s1 = 1; s1 = s1 + 1;有什么错? short s1 = 1; s1 += 1;有什么错?
- 你经历的项目中的SCM配置项主要有哪些?什么是配置项?
- 在spring中如何配代码的事务管理
- 在spring中如何配容器的事务管理,相关的类有那些?
- spring中的BeanFactory与ApplicationContext的作用和区别
- 简述索引存取方法的作用和建立索引的原则
- AJAX应用和传统Web应用有什么不同
- SMT技术员求职简历范文
- CSMA/CD介质访问控制协议