You are here

function drupal_clear_css_cache in Drupal 5

Same name and namespace in other branches
  1. 8 core/includes/common.inc \drupal_clear_css_cache()
  2. 6 includes/common.inc \drupal_clear_css_cache()
  3. 7 includes/common.inc \drupal_clear_css_cache()

Delete all cached CSS files.

Related topics

3 calls to 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.

File

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

Code

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();
}