[wp-trac] [WordPress Trac] #39591: Introduce wp_doing_cron()

WordPress Trac noreply at wordpress.org
Mon Jan 16 11:09:40 UTC 2017


#39591: Introduce wp_doing_cron()
-------------------------+------------------------------
 Reporter:  tfrommen     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Cron API     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by rmccue):

 Replying to [comment:3 tfrommen]:
 > And, yeah, caching data that is to be used multiple times (instead of
 querying it multiple times) is not a bad idea, right? ;)

 It's not querying though: as a constant, it's a constant and is basically
 instant; as a function, it's essentially static (small overhead of
 filtering, but that is never going to be significant). No point caching
 it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39591#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list