How to reduce plugin-notification load on every page
-
Hello. Nice plugin and great features.
I have a question.
Is there a way to reduce plugin-notification load to once every day.
https://groundho.gg/wp-json/wp/v2/plugin-notification/
In order to optimize wp, I disabled external requests. And now it tries to load it on every page when I am logged in.
It was trying to load it twice per page.
1st — in ‘admin_print_styles’.
2nd — in do_action(‘wp_after_admin_bar_render’)
I managed to remove 2nd by removing groundhogg from admin bar. In settings — misc tab. (Thanks for having that option)
Here is how 1st one called.
"Groundhogg\\Notices->count_unread",
"Groundhogg\\maybe_print_menu_styles",
"WP_Hook->apply_filters",
"WP_Hook->do_action",
"do_action('admin_print_styles')",
"require_once('wp-admin/admin-header.php')",
"require_once('wp-admin/admin.php')"Is there a way to reduce number of checks to 1 per day even if it was not successfully loaded for couple days or weeks?
ps: other plugins also load latest news/notifications from ther website. But they are not trying it too hard to load it on every page when last try failed.
Suggestion: it might be better to load notification inside cronjob, ajax or internal rest api. (In order to not slow down page generation of wordpress admin interface). Best solution I think once per day cron job.
Thank you.
- You must be logged in to reply to this topic.