You are here

public static function QuailApiBase::reset_cache in Quail API 8

Resets all static caches provided by this module.

1 call to QuailApiBase::reset_cache()
quail_api_disable in ./quail_api.install
Implementation of hook_disable().

File

src/QuailApiBase.php, line 158

Class

QuailApiBase
Class QuailApiBase.

Namespace

Drupal\quail_api

Code

public static function reset_cache() {
  drupal_static_reset('quail_api_get_standards');
  drupal_static_reset('quail_api_get_severitys');
  drupal_static_reset('quail_api_get_validation_methods');
  \Drupal::cache('quail_api_standards')
    ->invalidateAll();
  \Drupal::cache('quail_api_severity')
    ->invalidateAll();
  \Drupal::cache('quail_api_validation_methods')
    ->invalidateAll();
}