You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, WP101\Admin\register_menu_pages() includes a call to Api::get_playlist() to determine whether or not there are videos to show. However, the get_playlist() call is intentionally only cached for a minute, to reduce lag between adding add-ons and them becoming visible within WP Admin.
As a result, the plugin is making a ton of unnecessary requests to the WP101 Plugin SaaS (effectively once/minute whenever someone's in WP Admin), which also bumps the "Last seen" date for the API key even though the site owner may not have been doing anything related to WP101.
To get around this, we should use a different conditional to determine whether or not to load the playlist page that updates far less frequently.
The text was updated successfully, but these errors were encountered:
Currently,
WP101\Admin\register_menu_pages()
includes a call toApi::get_playlist()
to determine whether or not there are videos to show. However, theget_playlist()
call is intentionally only cached for a minute, to reduce lag between adding add-ons and them becoming visible within WP Admin.As a result, the plugin is making a ton of unnecessary requests to the WP101 Plugin SaaS (effectively once/minute whenever someone's in WP Admin), which also bumps the "Last seen" date for the API key even though the site owner may not have been doing anything related to WP101.
To get around this, we should use a different conditional to determine whether or not to load the playlist page that updates far less frequently.
The text was updated successfully, but these errors were encountered: