v0.5.0
This commit is contained in:
parent
38fbcf80a5
commit
90ac22a845
8 changed files with 379 additions and 5 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue