Projet

Général

Profil

Révision 30d5b9c5

Ajouté par Mathieu Schiano Di Schiabica il y a environ 8 ans

Update to 7.42

Voir les différences:

drupal7/modules/system/system.module
3056 3056
    }
3057 3057
  }
3058 3058

  
3059
  $core = array('cache', 'cache_path', 'cache_filter', 'cache_page', 'cache_form', 'cache_menu');
3060
  $cache_tables = array_merge(module_invoke_all('flush_caches'), $core);
3059
  // Delete expired cache entries.
3060
  // Avoid invoking hook_flush_cashes() on every cron run because some modules
3061
  // use this hook to perform expensive rebuilding operations (which are only
3062
  // designed to happen on full cache clears), rather than just returning a
3063
  // list of cache tables to be cleared.
3064
  $cache_object = cache_get('system_cache_tables');
3065
  if (empty($cache_object)) {
3066
    $core = array('cache', 'cache_path', 'cache_filter', 'cache_page', 'cache_form', 'cache_menu');
3067
    $cache_tables = array_merge(module_invoke_all('flush_caches'), $core);
3068
    cache_set('system_cache_tables', $cache_tables);
3069
  }
3070
  else {
3071
    $cache_tables = $cache_object->data;
3072
  }
3061 3073
  foreach ($cache_tables as $table) {
3062 3074
    cache_clear_all(NULL, $table);
3063 3075
  }

Formats disponibles : Unified diff