_drupal_flush_css_js

function _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

includes/common.inc, line 7670
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));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/_drupal_flush_css_js/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部