21 lines
463 B
PHP
21 lines
463 B
PHP
<?php
|
|
defined('IN_IA') or exit('Access Denied');
|
|
|
|
load()->func('cache.mysql');
|
|
|
|
// 加载系统指定的配置项(core_cache表中)
|
|
function cache_load($key, $db,$unserialize = false) {
|
|
global $_W;
|
|
if (!empty($_W['cache'][$key])) {
|
|
return $_W['cache'][$key];
|
|
}
|
|
// 读取指定的系统配置项(core_cache表中)
|
|
$data = $_W['cache'][$key] = cache_read($key,$db);
|
|
return $unserialize ? iunserializer($data) : $data;
|
|
}
|
|
|
|
|
|
function &cache_global($key) {
|
|
|
|
}
|