drupal_clear_css_cache

Versions
5 – 7
drupal_clear_css_cache()

Delete all cached CSS files.

Related topics

▾ 3 functions call drupal_clear_css_cache()

system_modules_submit in modules/system/system.module
Submit callback; handles modules form submission.
system_themes in modules/system/system.module
Menu callback; displays a listing of all themes.
update_do_updates in ./update.php
Perform updates for one second or until finished.

Code

includes/common.inc, line 1691

<?php
function drupal_clear_css_cache() {
  file_scan_directory(file_create_path('css'), '.*', array('.', '..', 'CVS'), 'file_delete', TRUE);
  // Clear the page cache, so cached pages do not reference nonexistent CSS.
  cache_clear_all();
}
?>
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.