Integrate PHPCMS_V9.5.8_UTF8 in ucenter_1.6.0_sc_utf8, update the solution to the client cache failure!
Solution process:
Add the following method to phpsso_server/api/uc.php class uc_note:
//update client cache
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;
}
Check the PHPSSO_SERVER\API\UC_Client\Data\Cache\Settings.php file and find that the update has been successful:


