{"id":43472,"date":"2017-10-25T09:36:30","date_gmt":"2017-10-25T01:36:30","guid":{"rendered":"http:\/\/www.xyryd.com\/?p=43472"},"modified":"2019-04-29T16:49:27","modified_gmt":"2019-04-29T08:49:27","slug":"discuz-%e8%ae%a1%e5%88%92%e4%bb%bb%e5%8a%a1%e6%af%8f%e6%97%a5%e4%b8%8d%e6%89%a7%e8%a1%8c%e6%9b%b4%e6%96%b0%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"http:\/\/www.xyryd.com\/43472.html","title":{"rendered":"Discuz \u8ba1\u5212\u4efb\u52a1\u6bcf\u65e5\u4e0d\u6267\u884c\u66f4\u65b0 \u89e3\u51b3\u65b9\u6cd5 \u56fe\u6587\u6559\u7a0b"},"content":{"rendered":"

\u95ee\u9898\u662f Discuz \u8bba\u575b\u91cc\u7684\u8ba1\u5212\u4efb\u52a1\u4e0d\u6267\u884c\u4e86\uff0c\u6ca1\u6b21\u90fd\u9700\u8981\u624b\u52a8\u6267\u884c\u3002\u4e00\u822c\u95ee\u9898\u8868\u73b0\u5728\u8bba\u575b\u9996\u9875\u4eca\u65e5\u6628\u65e5\u5e16\u5b50\u4e0d\u5237\u65b0\u3002 \u5982\u56fe:
\n
\n\u8fd9\u79cd\u60c5\u51b5\u4e00\u822c\u662f \u6709\u4e9b\u63d2\u4ef6\u7684\u8ba1\u5212\u4efb\u52a1\u4e0d\u6267\u884c\u5bfc\u81f4\u7684\u3002<\/p>\n

[title]\u89e3\u51b3\u529e\u6cd51\uff1a[\/title]<\/strong>
\n\u5230\u540e\u53f0-\u5de5\u5177-\u8ba1\u5212\u4efb\u52a1\u67e5\u770b\u4e00\u4e0b\uff0c\u4e00\u822c\u63d2\u4ef6\u7684\u8ba1\u5212\u4efb\u52a1\u90fd\u662f\u5728\u7b2c\u4e00\u4e2a\uff0c\u5b98\u65b9\u5185\u7f6e\u7684\u8ba1\u5212\u4efb\u52a1\u90fd\u662fcron_<\/strong><\/span>\u5f00\u5934\u7684\u3002\u5982\u56fe:<\/p>\n

\u627e\u5230\u8fd9\u4e2a\u8ba1\u5212\u4efb\u52a1\u3002\u5982\u679c\u53ef\u4ee5\u5220\u9664\u7684\u8bdd\uff0c\u76f4\u63a5\u5220\u9664\u5373\u53ef\u3002<\/p>\n

\u5982\u679c\u5220\u9664\u4e0d\u4e86\u7684\u8bdd\u3002\u67e5\u770b\u8be5\u63d2\u4ef6\u662f\u5426\u672a\u5f00\u542f\u6216\u8005\u5df2\u5220\u9664\uff0c\u76f4\u63a5\u5230\u6570\u636e\u5e93\u627e\u5230pre_common_cron<\/strong><\/span>\u8fd9\u4e2a\u8868\u5220\u9664\u8fd9\u4e2a\u8ba1\u5212\u4efb\u52a1\u3002\u5982\u56fe\uff1a
\n<\/p>\n

\u6216\u8005\u5c06\u540e\u53f0\u8ba1\u5212\u4efb\u52a1\u4e2d\u7684\u53ef\u7528\u6027\u53d6\u6d88\u52fe\u9009\u3002<\/p>\n

[title]\u89e3\u51b3\u529e\u6cd52\uff1a[\/title]<\/strong><\/p>\n

\u4ee5\u4e0a\u529e\u6cd5\u90fd\u65e0\u6cd5\u89e3\u51b3\u53ef\u4ee5\u8003\u8651\u91cd\u7f6e\u8fd9\u4e2a\u8868pre_common_cron\uff0c\u5230\u6570\u636e\u5e93\u6267\u884c\u5982\u4e0b\u5b57\u6bb5\u5373\u53ef\u3002<\/span><\/p>\n

\n
\n
DROP TABLE IF EXISTS pre_common_cron;\r\nCREATE TABLE `pre_common_cron` (\r\n`cronid` smallint(6) unsigned NOT NULL auto_increment,\r\n`available` tinyint(1) NOT NULL default '0',\r\n`type` enum('user','system','plugin') NOT NULL default 'user',\r\n`name` char(50) NOT NULL default '',\r\n`filename` char(50) NOT NULL default '',\r\n`lastrun` int(10) unsigned NOT NULL default '0',\r\n`nextrun` int(10) unsigned NOT NULL default '0',\r\n`weekday` tinyint(1) NOT NULL default '0',\r\n`day` tinyint(2) NOT NULL default '0',\r\n`hour` tinyint(2) NOT NULL default '0',\r\n`minute` char(36) NOT NULL default '',\r\nPRIMARY KEY (`cronid`),\r\nKEY `nextrun` (`available`,`nextrun`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=22 ;\r\n\r\n\r\n\r\nINSERT INTO `pre_common_cron` (`cronid`, `available`, `type`, `name`, `filename`, `lastrun`, `nextrun`, `weekday`, `day`, `hour`, `minute`) VALUES?\r\n(1, 1, 'system', '\u6e05\u7a7a\u4eca\u65e5\u53d1\u5e16\u6570', 'cron_todaypost_daily.php', 1416342963, 1416412800, -1, -1, 0, '0'),\r\n(2, 1, 'system', '\u6e05\u7a7a\u672c\u6708\u5728\u7ebf\u65f6\u95f4', 'cron_onlinetime_monthly.php', 1414791807, 1417363200, -1, 1, 0, '0'),\r\n(3, 1, 'system', '\u6bcf\u65e5\u6570\u636e\u6e05\u7406', 'cron_cleanup_daily.php', 1416357390, 1416432600, -1, -1, 5, '30'),\r\n(5, 1, 'system', '\u6bcf\u65e5\u516c\u544a\u6e05\u7406', 'cron_announcement_daily.php', 1416346616, 1416412800, -1, -1, 0, '0'),\r\n(6, 1, 'system', '\u9650\u65f6\u64cd\u4f5c\u6e05\u7406', 'cron_threadexpiry_hourly.php', 1416357391, 1416358800, -1, -1, -1, '0'),\r\n(7, 1, 'system', '\u8bba\u575b\u63a8\u5e7f\u6e05\u7406', 'cron_promotion_hourly.php', 1416347376, 1416412800, -1, -1, 0, '00'),\r\n(8, 1, 'system', '\u6bcf\u6708\u4e3b\u9898\u6e05\u7406', 'cron_cleanup_monthly.php', 1414860761, 1417384800, -1, 1, 6, '00'),\r\n(9, 1, 'system', '\u9053\u5177\u81ea\u52a8\u8865\u8d27', 'cron_magic_daily.php', 1416347946, 1416412800, -1, -1, 0, '0'),\r\n(10, 1, 'system', '\u6bcf\u65e5\u9a8c\u8bc1\u95ee\u7b54\u66f4\u65b0', 'cron_secqaa_daily.php', 1416357391, 1416434400, -1, -1, 6, '0'),\r\n(11, 1, 'system', '\u6bcf\u65e5\u6807\u7b7e\u66f4\u65b0', 'cron_tag_daily.php', 1416347946, 1416412800, -1, -1, 0, '0'),\r\n(12, 1, 'system', '\u6bcf\u65e5\u52cb\u7ae0\u66f4\u65b0', 'cron_medal_daily.php', 1416347947, 1416412800, -1, -1, 0, '0'),\r\n(13, 1, 'system', '\u6e05\u7406\u8fc7\u671f\u52a8\u6001', 'cron_cleanfeed.php', 1416347948, 1416412800, -1, -1, 0, '0'),\r\n(14, 1, 'system', '\u6bcf\u65e5\u83b7\u53d6\u5b89\u5168\u8865\u4e01', 'cron_checkpatch_daily.php', 1416353617, 1416421320, -1, -1, 2, '22'),\r\n(15, 1, 'system', '\u5b9a\u65f6\u53d1\u5e03\u4e3b\u9898', 'cron_publish_halfhourly.php', 1416357391, 1416358800, -1, -1, -1, '0 30'),\r\n(16, 1, 'system', '\u6bcf\u5468\u5e7f\u64ad\u5f52\u6863', 'cron_follow_daily.php', 1416350694, 1416420000, -1, -1, 2, '0'),\r\n(17, 1, 'system', '\u66f4\u65b0\u6bcf\u65e5\u67e5\u770b\u6570', 'cron_todayviews_daily.php', 1416357389, 1416423600, -1, -1, 3, '0 5 10 15 20 25 30 35 40 45 50 55'),\r\n(18, 0, 'system', '\u6bcf\u65e5\u7528\u6237\u8868\u4f18\u5316', 'cron_member_optimize_daily.php', 1377225651, 0, -1, -1, 2, '0 5 10 15 20 25 30 35 40 45 50 55'),\r\n(19, 0, 'user', '\u9632\u6c34\u5899\u6bcf\u65e5\u4f18\u5316', 'cron_security_daily.php', 1416351485, 1416420000, -1, -1, 2, '0'),\r\n(20, 1, 'system', '\u7edf\u8ba1\u4eca\u65e5\u70ed\u5e16', 'cron_todayheats_daily.php', 1416348808, 1416412800, -1, -1, 0, '0'),\r\n(21, 0, 'user', '\u66f4\u65b0\u7248\u5757\u6700\u540e\u53d1\u8868(\u9632\u6c34\u5899\u76f8\u5173)', 'cron_security_cleanup_lastpost.php', 0, 0, -1, -1, -1, '0');<\/pre>\n

\u5230\u6b64\u95ee\u9898\u5373\u53ef\u89e3\u51b3\u3002<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

\u95ee\u9898\u662f Discuz \u8bba\u575b\u91cc\u7684\u8ba1\u5212\u4efb\u52a1\u4e0d\u6267\u884c\u4e86\uff0c\u6ca1\u6b21\u90fd\u9700\u8981\u624b\u52a8\u6267\u884c\u3002\u4e00\u822c\u95ee\u9898\u8868\u73b0\u5728\u8bba\u575b\u9996\u9875\u4eca\u65e5\u6628\u65e5\u5e16\u5b50\u4e0d\u5237\u65b0\u3002 […]<\/p>\n","protected":false},"author":1,"featured_media":43101,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/43472"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=43472"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/43472\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/43101"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=43472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=43472"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=43472"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}