function drupal_clear_css_cache

Deletes old cached CSS files.

4 calls to drupal_clear_css_cache()
drupal_flush_all_caches in drupal/core/includes/common.inc
Flushes all persistent caches, resets all variables, and rebuilds all data structures.
PerformanceForm::submitForm in drupal/core/modules/system/lib/Drupal/system/Form/PerformanceForm.php
Implements \Drupal\Core\Form\FormInterface::submitForm().
theme_disable in drupal/core/includes/theme.inc
Disables a given list of themes.
theme_enable in drupal/core/includes/theme.inc
Enables a given list of themes.

File

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

Code

function drupal_clear_css_cache() {
  Drupal::state()
    ->delete('drupal_css_cache_files');
  file_scan_directory('public://css', '/.*/', array(
    'callback' => 'drupal_delete_file_if_stale',
  ));
}