[wp-trac] [WordPress Trac] #25773: can not update option in wp 3.7 and hanging in wp_clear_scheduled_hook()

WordPress Trac noreply at wordpress.org
Thu Oct 31 06:58:35 UTC 2013


#25773: can not update option in wp 3.7 and hanging in wp_clear_scheduled_hook()
--------------------------+--------------------
 Reporter:  dimagsv       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7.2
Component:  Cache         |     Version:  3.7.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by dimagsv):

 How to reproduce.
 1. Install [http://wordpress.org/plugins/google-sitemap-generator/ Google
 XML Sitemaps] plugin.
 2. Activate plugin.
 3. Enable option 'Rebuild sitemap if you change the content of your blog'.
 4. Open in admin area any published page or post, press 'Save'.
 5. Wait at least 15 seconds. Better 20 seconds. Do not open any other
 pages of this wordpress installation during this 15-20 seconds.
 6. Press 'Save' again. WP hangs at wp_clear_scheduled_hook().

 What is happen.
 1. The event 'sm_build_cron' was scheduled on current time + 15 seconds
 after the first press 'Save'.
 2. Options was read from database with cron scheduled event
 'sm_build_cron' after the second press 'Save'.
 3. Cron job started in the new thread.
 4. Cron job in the new thread clear event 'sm_build_cron' from database
 earlier than wp_clear_scheduled_hook() called in the main thread.
 5. Event 'sm_build_cron' exist in the main thread memory cache, but not in
 the database.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25773#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list