function esi_update_7001 in ESI: Edge Side Includes 7.3
Implements hook_update_n().
File
- ./
esi.install, line 21
Code
function esi_update_7001() {
// @TODO: should this belong to esi_block?
// The variable 'esi_block_default_max_age' has been renamed to
// 'esi_block_default_ttl'.
$ttl = variable_get('esi_block_default_max_age', FALSE);
if (is_numeric($ttl) || $ttl === 0) {
variable_set('esi_block_default_ttl', $ttl);
variable_del('esi_block_default_max_age');
}
}