wp-media / backwpup

BackWPup - WordPress Backup Plugin
https://backwpup.com
GNU General Public License v2.0
88 stars 35 forks source link

Excessive transient writes #22

Closed Rarst closed 9 years ago

Rarst commented 9 years ago

Query Monitor catches 10 transient writes from the plugin every page load with toolbar.

Call stack:

set_transient()
wp_rand()
wp_generate_password()
WP_Session_Tokens->create()
wp_generate_auth_cookie()
BackWPup_Job::get_jobrun_url()
BackWPup_Adminbar->adminbar()
do_action_ref_array('admin_bar_menu')
wp_admin_bar_render()
do_action('in_admin_header')

It looks like it generates same cookies over and over, so might be better reused.

danielhuesken commented 9 years ago

Thanks for the hint. I will change it so that they will reused.