Clark-Nikdel-Powell / WP-Admin-Command-Palette

Optimize WordPress admin navigation with a modal window to search for and navigate directly to WordPress admin pages.
GNU General Public License v2.0
4 stars 0 forks source link

Test to see if building the user-content transient is faster with wp_schedule_event #15

Closed jhned closed 9 years ago

jhned commented 9 years ago

We could use wp_schedule_event to build the user-content transient, rather than doing it on activation. Doing it this way would make activation faster on large sites.

jhned commented 9 years ago

Yeah, I think this might be better-- take a look here: http://spruce.it/noise/use-wp-cron-to-trigger-asynchronous-background-tasks-in-wordpress-on-post-save-or-update/

gwelser commented 9 years ago

+1

samueljmello commented 9 years ago

The wp_schedule_event function just postpones the function for later. meaning, it will still need to be triggered by a user. Basically, instead of spanking Timmy for saving a post, you are going to spank Johnny later instead. Or possibly Timmy. Who knows?