diff --git includes/common.inc includes/common.inc index 82e44b5..7f68bd0 100644 --- includes/common.inc +++ includes/common.inc @@ -3181,7 +3181,7 @@ function drupal_pre_render_styles($elements) { function drupal_build_css_cache($css) { $data = ''; $uri = ''; - $map = variable_get('drupal_css_cache_files', array()); + $map = variable_get('preprocess_css_cache_files', array()); $key = hash('sha256', serialize($css)); if (isset($map[$key])) { $uri = $map[$key]; @@ -3221,7 +3221,7 @@ function drupal_build_css_cache($css) { } // Save the updated map. $map[$key] = $uri; - variable_set('drupal_css_cache_files', $map); + variable_set('preprocess_css_cache_files', $map); } return $uri; } @@ -3360,7 +3360,7 @@ function _drupal_load_stylesheet($matches) { * Deletes old cached CSS files. */ function drupal_clear_css_cache() { - variable_del('drupal_css_cache_files'); + variable_del('preprocess_css_cache_files'); file_scan_directory('public://css', '/.*/', array('callback' => 'drupal_delete_file_if_stale')); } @@ -3368,8 +3368,8 @@ function drupal_clear_css_cache() { * Callback to delete files modified more than a set time ago. */ function drupal_delete_file_if_stale($uri) { - // Default stale file threshold is 30 days. - if (REQUEST_TIME - filemtime($uri) > variable_get('drupal_stale_file_threshold', 2592000)) { + // Default stale file threshold is 3 days. + if (REQUEST_TIME - filemtime($uri) > variable_get('drupal_stale_file_threshold', 259200)) { file_unmanaged_delete($uri); } } @@ -3788,7 +3788,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL) { // Since Javascript may look for arguments in the url and act on them, some // third-party code might require the use of a different query string. - $js_version_string = variable_get('drupal_js_version_query_string', 'v='); + $js_version_string = variable_get('js_version_query_string', 'v='); // Sort the JavaScript by weight so that it appears in the correct order. uasort($items, 'drupal_sort_weight'); @@ -4374,7 +4374,7 @@ function drupal_add_tabledrag($table_id, $action, $relationship, $group, $subgro function drupal_build_js_cache($files) { $contents = ''; $uri = ''; - $map = variable_get('drupal_js_cache_files', array()); + $map = variable_get('preprocess_js_cache_files', array()); $key = hash('sha256', serialize($files)); if (isset($map[$key])) { $uri = $map[$key]; @@ -4400,7 +4400,7 @@ function drupal_build_js_cache($files) { return FALSE; } $map[$key] = $uri; - variable_set('drupal_js_cache_files', $map); + variable_set('preprocess_js_cache_files', $map); } return $uri; } @@ -4410,7 +4410,7 @@ function drupal_build_js_cache($files) { */ function drupal_clear_js_cache() { variable_del('javascript_parsed'); - variable_del('drupal_js_cache_files'); + variable_del('preprocess_js_cache_files'); file_scan_directory('public://js', '/.*/', array('callback' => 'drupal_delete_file_if_stale')); }