You are here

function l10n_update_flush_caches in Localization update 7

Same name and namespace in other branches
  1. 6 l10n_update.module \l10n_update_flush_caches()

Implements hook_flush_caches().

Called from update.php (among others) to flush the caches.

File

./l10n_update.module, line 490
Download translations from remote localization server.

Code

function l10n_update_flush_caches() {
  if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update') {
    cache_clear_all('*', 'cache_l10n_update', TRUE);
    variable_set('l10n_update_rebuild_projects', 1);
  }
  return array();
}