function drupal_clear_css_cache in Drupal 7
Same name and namespace in other branches
- 8 core/includes/common.inc \drupal_clear_css_cache()
- 5 includes/common.inc \drupal_clear_css_cache()
- 6 includes/common.inc \drupal_clear_css_cache()
Deletes old cached CSS files.
3 calls to drupal_clear_css_cache()
- drupal_flush_all_caches in includes/
common.inc - Flushes all cached data on the site.
- theme_disable in includes/
theme.inc - Disables a given list of themes.
- theme_enable in includes/
theme.inc - Enables a given list of themes.
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 3922 - Common functions that many Drupal modules will need to reference.
Code
function drupal_clear_css_cache() {
variable_del('drupal_css_cache_files');
file_scan_directory('public://css', '/.*/', array(
'callback' => 'drupal_delete_file_if_stale',
));
}