function drupal_clear_css_cache
Same name in other branches
- 7.x includes/common.inc \drupal_clear_css_cache()
Deletes old cached CSS files.
Deprecated
in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Asset\AssetCollectionOptimizerInterface::deleteAll().
See also
https://www.drupal.org/node/2317841
File
-
core/
includes/ common.inc, line 443
Code
function drupal_clear_css_cache() {
\Drupal::service('asset.css.collection_optimizer')->deleteAll();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.