Perform a smart flush.
Fichier
-
src/
Form/ OperationsForm.php, line 299
Classe
- OperationsForm
- Configure advagg settings for this site.
Namespace
Drupal\advagg\FormCode
public function flushCache() {
Cache::invalidateTags([
'library_info',
'advagg_css',
'advagg_js',
]);
if ($this->config('advagg.settings')
->get('cache_level') >= 0) {
// Display a simple message if not in Development mode.
drupal_set_message($this->t('Advagg Caches Cleared'));
}
}