如隔一天自动更新一下缓存 $refresh = 900; //更新周期(以秒为单位,可根据需要自行调整) mt_srand(floor(time() / $refresh)); 这个也能实现自动更新吗?