*/ public static function abilities(): array { return [ new Ability( 'sarcio/cache-purge', __('Clear the caches', 'sarcio'), Ability::WRITE, 'Clear the site’s page caches (WP Rocket, LiteSpeed, W3 Total Cache, WP Super Cache, Cache Enabler, WP Fastest Cache, Autoptimize, SiteGround, WP Engine, Breeze, whichever is installed) so visitors see the current site. Harmless; caches are also cleared after every applied change.', ['properties' => [], 'required' => [], 'type' => 'object'], static fn (array $args): bool => current_user_can('manage_options'), static fn (array $args): array => ['cleared' => Cache::purge(), 'journal' => ['after' => [], 'before' => [], 'summary' => __('Cleared the caches', 'sarcio'), 'target' => 'cache']], ), ]; } }