This commit is contained in:
Javier Casares 2026-08-14 20:07:54 +00:00
commit 90ac22a845
8 changed files with 379 additions and 5 deletions

View file

@ -74,7 +74,9 @@ class Robotstxt_Manager_Admin {
/**
* Handles the "Refresh catalog" admin-post action.
*
* Clears the cached catalog response and redirects back to the page.
* Clears the cached catalog response, purges WordPress's update_plugins
* transient so native update badges re-evaluate immediately, and
* redirects back to the page.
*
* @return void
*/
@ -87,6 +89,7 @@ class Robotstxt_Manager_Admin {
$client = Robotstxt_Manager_Core_Client::from_options();
$client->clear_catalog_cache();
delete_site_transient( 'update_plugins' );
$redirect = add_query_arg(
array(