This commit is contained in:
Javier Casares 2026-08-18 10:48:13 +00:00
commit 5589c54b9b
13 changed files with 138 additions and 58 deletions

View file

@ -34,7 +34,7 @@ class Robotstxt_Manager_Activator {
* @return void
*/
public static function deactivate(): void {
delete_transient( 'robotstxt_manager_catalog' );
delete_site_transient( 'robotstxt_manager_catalog' );
}
/**
@ -43,12 +43,12 @@ class Robotstxt_Manager_Activator {
* @return void
*/
private static function ensure_defaults(): void {
if ( '' === get_option( 'robotstxt_manager_store_url', '' ) ) {
update_option( 'robotstxt_manager_store_url', 'https://www.robotstxt.software' );
if ( '' === get_site_option( 'robotstxt_manager_store_url', '' ) ) {
update_site_option( 'robotstxt_manager_store_url', 'https://www.robotstxt.software' );
}
if ( '' === get_option( 'robotstxt_manager_cache_ttl_minutes', '' ) ) {
update_option( 'robotstxt_manager_cache_ttl_minutes', 60 );
if ( '' === get_site_option( 'robotstxt_manager_cache_ttl_minutes', '' ) ) {
update_site_option( 'robotstxt_manager_cache_ttl_minutes', 60 );
}
}
}