UCenter_1.6.0_SC_UTF8中整合phpcms_v9.5.8_UTF8,更新客户端缓存失败的解决!
解决流程:
在phpsso_server/api/uc.php class uc_note 中添加如下方法:
//更新客户端缓存
function updateclient($get, $post) {
if(!API_UPDATECLIENT) {
return API_RETURN_FORBIDDEN;
}
$cachefile = dirname(__FILE__).’/uc_client/data/cache/settings.php’;
$fp = fopen($cachefile, ‘w’);
$s = “<?php\r\n”;
$s .= ‘$_CACHE[\’settings\’] = ‘.var_export($post, TRUE).”;\r\n”;
fwrite($fp, $s);
fclose($fp);
return API_RETURN_SUCCEED;
}
查看phpsso_server\api\uc_client\data\cache\settings.php文件,发现已经更新成功:
近期评论