function drupal_clear_css_cache

drupal_clear_css_cache()

Deletes old cached CSS files.

File

includes/common.inc, line 3873
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'));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_clear_css_cache/7.x