首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 在CodeIgniter缓存查询的改进方法

在CodeIgniter缓存查询的改进方法

  • 资源大小:33.12 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 缓存 codeigniter 方法 改进 查询

资 源 简 介

Introduction The way CodeIgniter does Query Caching (namely Controller-based caching) works fine with small and decentralized pages where all controllers are pretty much independent. But as soon as you have a model that’s shared by a handful of controllers, you end up with a big mess. Just take a model for generating the data for a tag cloud that’s displayed on every page. You would end up with dozens of duplicates and handling those caches would suck as hell. See this topic for discussion: http://codeigniter.com/forums/viewthread/78146/ I got pretty sick of this and thus I of re-wrote pretty much CI’s entire caching storage mechanisms. Using my code CI now supports several different ways to cache database queries. Articles Documentation of ControllerBasedMode Documentation of ModelBasedMode Docum
VIP VIP
0.216876s