Skip navigation
Help

_drupal_flush_css_js

6 common.inc _drupal_flush_css_js()
7 common.inc _drupal_flush_css_js()

Helper function to change query-strings on css/js files.

Changes the character added to all css/js files as dummy query-string, so that all browsers are forced to reload fresh files.

2 calls to _drupal_flush_css_js()

File

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

Code

function _drupal_flush_css_js() {
  // The timestamp is converted to base 36 in order to make it more compact.
  variable_set('css_js_query_string', base_convert(REQUEST_TIME, 10, 36));
}