/ 设置 10 秒超时 // 每日统计清 0 runtime_set('todaycomments', 0); runtime_set('todayarticles', 0); runtime_set('todayusers', 0); if ($forumlist) { $fidarr = array(); foreach ($forumlist as $fid => $forum) { $fidarr[] = $forum['fid']; } forum_update($fidarr, array('todayposts' => 0, 'todaythreads' => 0)); } // 清理临时附件 attach_gc(); // 当天24点 $today = strtotime(date('Ymd')) + 86400; runtime_set('cron_2_last_date', $today, TRUE); // 往前推8个小时,尽量保证在前一天 升级过来和采集的数据会很卡 // table_day_cron($time - 8 * 3600); cache_delete('cron_lock_2'); } } } ?>Cocos2d

cocos2d ios 环境搭建

一、下载cocos2d-x http:cocos2d-xprojectscocos2d-xwikiDownload cocos2d-x-2.1.4.zipJune.18, 2013 我们可以看到最新版本的2.1.4&

7月前750

Cocos2D手机游戏开发之优化篇

Cocos2D手机游戏开发之优化篇在这个手机游戏盛行已久的年代,一款产品想要博得更多用户的喜爱就要在细节上做得更加到位。而游戏的优化在这里面起到了非常关键的作用。试想下,一款画面和玩法都深受用户喜

7月前760

《Cocos2d-x3.x游戏开发之旅》学习

1.addEventListenerWidthSceneGraphPriority函数,这个函数的两个参数作用如下: EventListener *listener:事件监听对象,当触摸事件发生时

2024-10-32080