[wp-trac] [WordPress Trac] #27119: disabling wp_auth_check_load does not actually disable the auth check
WordPress Trac
noreply at wordpress.org
Thu Feb 13 03:29:38 UTC 2014
#27119: disabling wp_auth_check_load does not actually disable the auth check
--------------------------+-----------------------------
Reporter: lisota | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.8.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Line 4021 of wp-includes\functions.php mentions that the wp_auth_check can
be disabled by the following:
{{{
remove_action( 'admin_enqueue_scripts', 'wp_auth_check_load' )
}}}
I expected that this would remove the auth check hearbeat actions, but the
auth-check keeps firing even with this action removed.
We are experiencing sever CPU utilization issues due to heartbeat actions
in post editing screens and are looking to disable these where we can.
We've isolated the problem to the heartbeat API. Our site is high traffic
with many editors who spend at least 8 hrs per day in one or more post
edit screens at all times.
It appears that the auth-check is still firing from a combo of post.js and
heartbeat.js on post edit screens, likely driven by the refresh-post-lock.
To reproduce, add the remove_action mentioned above to functions.php. Open
fiddler (or equivalent), then open a new post for editing. Watch the
admin-ajax actions every 15 seconds, and you'll see that the auth-check is
still firing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27119>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list