芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/minscoop.com/app/Controllers/CronController.php
getFeedsNotUpdated(); if (empty($feedNotUpdated)) { $rssModel->resetFeedsCronChecked(); } $feeds = $rssModel->getFeedsCron(); if (!empty($feeds)) { foreach ($feeds as $feed) { if (!empty($feed->feed_url)) { $rssModel->addFeedPosts($feed->id); $rssModel->setFeedCronChecked($feed->id); } } resetCacheDataOnChange(); } echo "Feeds have been checked!"; } /** * Update Sitemap */ public function updateSitemap() { $sitemapModel = new SitemapModel(); $sitemapModel->generateSitemap(); echo "Sitemap has been generated!"; } /** * Check Scheduled Posts */ public function checkScheduledPosts() { $postAdminModel = new PostAdminModel(); $postAdminModel->checkScheduledPosts(); } }