[wp-trac] [WordPress Trac] #37584: Add SHORTINIT Options

WordPress Trac noreply at wordpress.org
Fri Aug 5 12:55:09 UTC 2016


#37584: Add SHORTINIT Options
-----------------------------------------+-----------------------------
 Reporter:  steveglick                   |      Owner:
     Type:  feature request              |     Status:  new
 Priority:  normal                       |  Milestone:  Awaiting Review
Component:  General                      |    Version:  4.5.3
 Severity:  normal                       |   Keywords:
  Focuses:  administration, performance  |
-----------------------------------------+-----------------------------
 The existing SHORTINIT variable is useful for loading a minimal WP
 environment, but it is far too limited for a lot of scenarios. There
 should be some more advanced shortinit options such as
 SHORTINIT_WITH_SESSION to allow access to the user session.

 To give some context on where this could be useful, I built an ajax heavy
 WP plugin that was far too slow because of it's use of admin-ajax. To fix
 this I built my own ajax implementation that loads WP manually and uses
 SHORTINIT to do so. This removes access to user data though which removed
 all authentication for ajax requests. In my case this was not an option so
 I manually loaded in those parts of WP. This works excellently (ajax load
 times were cut at least in half), but I am dreading maintaining this.

 This would also make it easier to implement #33252.

 I'll gladly take this and build it myself if this request is approved.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37584>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list