array( 'type' => 'array' ), 'dropin_installed' => array( 'type' => 'boolean' ), ); } protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true, ); } /** * @param array $input Input. * @return array */ protected function run( array $input ) { return array( 'settings' => Settings_Repository::describe_area( 'object-cache' ), 'dropin_installed' => Toolbox_Repository::object_cache_dropin_installed(), 'message' => Settings_Repository::value( 'object' ) ? __( 'Object cache is enabled. Call litespeed/test-object-cache-connection to confirm it is reachable.', 'acrossai-abilities-manager' ) : __( 'Object cache is disabled.', 'acrossai-abilities-manager' ), ); } }