Perform a smart flush.

File

src/Form/OperationsForm.php, line 299

Class

OperationsForm
Configure advagg settings for this site.

Namespace

Drupal\advagg\Form

Code

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'));
    }
}