You are here

function drupal_clear_css_cache in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/includes/common.inc \drupal_clear_css_cache()

Deletes old cached CSS files.

Deprecated

in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\Core\Asset\AssetCollectionOptimizerInterface::deleteAll().

File

core/includes/common.inc, line 424
Common functions that many Drupal modules will need to reference.

Code

function drupal_clear_css_cache() {
  \Drupal::service('asset.css.collection_optimizer')
    ->deleteAll();
}