function boost_update_6111 in Boost 6
Update 6111 - Use MD5 hash for DB Keys, allowing for long URL's to be cached
File
- ./
boost.install, line 1087 - Handles Boost module installation and upgrade tasks.
Code
function boost_update_6111() {
$GLOBALS['_boost_max_execution_time'] = ini_get('max_execution_time');
ini_set('max_execution_time', 10800);
//3 Hours
_boost_install_set_time_limit(0);
$ret = array();
// Add in hash & hash_url columns to boost_cache
db_add_field($ret, 'boost_cache', 'hash', array(
'description' => 'MD5 hash of filename',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
));
db_add_field($ret, 'boost_cache', 'hash_url', array(
'description' => 'MD5 hash of url',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
));
db_add_index($ret, 'boost_cache', 'hash_url', array(
'hash_url',
));
// Add in hash columns to boost_crawler
db_add_field($ret, 'boost_crawler', 'hash', array(
'description' => 'MD5 hash of url',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
));
_boost_install_set_time_limit(0);
ini_set('max_execution_time', $GLOBALS['_boost_max_execution_time']);
return $ret;
}