1.20.x common.inc backdrop_clear_css_cache()

Deletes old cached CSS files.

File

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

Code

function backdrop_clear_css_cache() {
  state_del('css_cache_files');
  file_scan_directory('public://css', '/.*/', array('callback' => 'backdrop_delete_file_if_stale'));
}