function system_rebuild_css_js_query_string
Search API
7.x system.module | system_rebuild_css_js_query_string() |
6.x system.module | system_rebuild_css_js_query_string() |
5.x system.module | system_rebuild_css_js_query_string() |
This function will recreate the dummy query string we add to the end of css and js files.
1 call to system_rebuild_css_js_query_string()
- system_clear_cache in modules/
system/ system.module - Implements hook_clear_cache Take care of clearing caches managed by this module
File
- modules/
system/ system.module, line 3143
Code
function system_rebuild_css_js_query_string() {
// A dummy query string gets added to the URLs for css and javascript files,
// to give us control over browser caching. When this value changes (cause we
// cleared the cache, updated a module, etc) it tells the browser to get a new
// copy of our css and js files.
// This idea, like many other ideas in FlightPath, was borrowed from Drupal.
// The timestamp is converted to base 36 in order to make it more compact.
// This gives us a random-looking string of 6 numbers and letters.
variable_set('css_js_query_string', base_convert(time(), 10, 36));
}