In version 3.42 I was able to get schedule posts to work by modifying /wp-includes/cron.php and change the timeout in line 250 from 0.1 to 10. After updating to 3.5, and changing cron.php again, scheduled posts ALWAYS end up as “missed schedule” even if i set the timeout parameter to something incredibly high. I have tried removing all wordpress files and installing a fresh version of 3.5 but the problem persists.
The Cron View plugin shows each scheduled post as being a one-off event hooked to publish_future_post.
The Missed Schedule plugin does work, but, by default, it queries the database for missed posts every 5 minutes. Considering we rarely do more than a single scheduled post per day, and maybe 4 per week, querying the database an extra 2016 times per week is a LOT of overheard for 4 posts. In addition, there is a noticeable lag in the site when this plugin is enabled.
I do have the WP Super Cache plugin enabled, and have read a couple of posts pointing to issues with caching and scheduled posts. But since this WAS working in 3.42, one would think it should be possible to get it working again in 3.5.
Any suggestions?
]]>plugins not work in this version wordpress
]]>Hello Everyone!
I’m using the Missed Schedule Plugin but I need to publish posts from some categories only (or even better: all categories but one). Looking at the source code of the plugin it seems I have to edit this SQL query:
$missedIDs = $wpdb->get_col(
"SELECT <code>ID</code> FROM <code>{$wpdb->posts}</code> ".
"WHERE ( ".
" ((<code>post_date</code> > 0 )&& (<code>post_date</code> <= CURRENT_TIMESTAMP())) OR ".
" ((<code>post_date_gmt</code> > 0) && (<code>post_date_gmt</code> <= UTC_TIMESTAMP())) ".
") AND <code>post_status</code> = 'future'"
);
Now, I’m a SQL rookie, but as I can see there’s no column in the wp_posts table referring the post category and I wonder how can I achieve this.
Any help or input is highly appreciated.
thanks!
]]>