缓存分类
来源:互联网 发布:windows to go 激活 编辑:程序博客网 时间:2024/06/18 06:30
public function set_category_cache($categorys) {$cache_array = array();foreach ($categorys as $category) {if($category['modelid'] != 1) continue;$parentid = $category['parentid'];$categoryid = $category['catid'];$need_cache = false;if ($parentid == 0) {$need_cache = true;} else if(is_array($pp = $categorys[$parentid])) {if ($pp['parentid'] == 0) {$need_cache = true;}}if($need_cache)$cache_array[$parentid][$categoryid] = $categorys[$categoryid];}foreach($cache_array as $key => $values) {setcache('category_content_'. $key ."_". $this->siteid, $values, 'commons');}}
阅读全文
0 0
- 缓存分类
- 缓存分类
- Hibernate缓存分类
- 分布式缓存架构分类
- 网站缓存分类
- 缓存分类介绍
- php 无限级分类 缓存
- Hibernate缓存分类,范围及管理配置
- Hibernate缓存分类与使用条件
- 互联网Web应用缓存系统的分类
- Memcached 搭建缓存系统 博客分类: memcached
- DNS IP地址分类 ISP缓存
- 系统缓存全解析1:缓存的分类
- Magento 利用block缓存 查询的所有分类菜单
- iOS UIImage 异步加载 图片缓存压缩 UIImageVIew分类
- NSString 继续分类的介绍(清除缓存)
- hibernate中的缓存的分类及执行过程
- PHP根据分类分别生成js缓存文件
- ubuntu16.04 anaconda2 caffe环境配置
- 在Eclipse中测试MySQL-JDBC(3)增加(插入)【抛异常和抓异常】及中文乱码解决【U】
- IIS服务器开设10W请求限制
- 移动商城第六篇【分析商品的数据模型】
- json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array escape
- 缓存分类
- PV、UV、UIP、VV、CPC、CPM、RPM、CTR是什么意思?
- 推导斐波那契数列通项公式
- HTML <frameset> 标签
- ffmpeg concat过滤器解析
- 我对自动化测试的一些认识
- crc8表计算
- 收集一些未知Bug。
- 统计每月订单总额