drupal_clear_css_cache

Versions
5 – 7
drupal_clear_css_cache()

Delete all cached CSS files.

▾ 3 functions call 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.

Code

includes/common.inc, line 3507

<?php
function drupal_clear_css_cache() {
  file_scan_directory('public://css', '/.*/', array('callback' => 'file_unmanaged_delete'));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.