You are here

public function DiagnosticsService::reload in Purge 8.3

Reload the service and reinstantiate all enabled plugins.

@warning Reloading a service implies that all cached data will be reset and that plugins get reinstantiated during the current request, which should normally not be used. This method is specifically used in tests.

Overrides ServiceBase::reload

File

src/Plugin/Purge/DiagnosticCheck/DiagnosticsService.php, line 272

Class

DiagnosticsService
Provides a service that interacts with diagnostic checks.

Namespace

Drupal\purge\Plugin\Purge\DiagnosticCheck

Code

public function reload() {
  parent::reload();
  $this
    ->reloadIterator();
  $this->purgePurgers = NULL;
  $this->purgeQueue = NULL;
}