Same name and namespace in other branches
  1. 5.x includes/common.inc \drupal_clear_css_cache()
  2. 7.x includes/common.inc \drupal_clear_css_cache()
  3. 8.9.x core/includes/common.inc \drupal_clear_css_cache()

Delete all cached CSS files.

3 calls to drupal_clear_css_cache()
drupal_flush_all_caches in includes/common.inc
Flush all cached data on the site.
system_modules_submit in modules/system/system.admin.inc
Submit callback; handles modules form submission.
system_themes_form_submit in modules/system/system.admin.inc
Process system_themes_form form submissions.
1 string reference to 'drupal_clear_css_cache'
system_performance_settings in modules/system/system.admin.inc
Form builder; Configure site performance settings.

File

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

Code

function drupal_clear_css_cache() {
  file_scan_directory(file_create_path('css'), '.*', array(
    '.',
    '..',
    'CVS',
  ), 'file_delete', TRUE);
}