_drupal_flush_css_js

_drupal_flush_css_js()

Changes the dummy query string added to all CSS and JavaScript files.

Changing the dummy query string appended to CSS and JavaScript files forces all browsers to reload fresh files.

File

core/includes/common.inc, line 1158
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.
  Drupal::state()->set('system.css_js_query_string', base_convert(REQUEST_TIME, 10, 36));
}
doc_Drupal
2016-10-29 09:57:09
Comments
Leave a Comment

Please login to continue.