Description
If you disable the "SEO" cache in the admin configuration you are unable to re-enable the "SEO" cache.
Affected environments
Ultimate SEO URLs version 2.210 and 2.211.
Solution (until next version)
Replace the function "usu_check_cache_options" in "admin/includes/functions/extra_functions/seo.php" starting on line 104 with the following:
Code:
// Function to check the global cache settings
function usu_check_cache_options($action) {
$temp = explode('-', $action);
if(sizeof($temp) < 2) $temp[] = 'global';
$temp[1] = strtoupper($temp[1]);
switch($temp[0]) {
case 'enable':
$action = 'true';
if(SEO_USE_CACHE_GLOBAL == 'false' && $temp[1] != 'GLOBAL') {
zen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => $action), 'update', '`configuration_key`=\'SEO_USE_CACHE_GLOBAL\'');
echo '<div><span class="alert">' . sprintf(SEO_CONFIG_ADJUSTED, SEO_USE_CACHE_GLOBAL_TITLE, $action) . '</span></div>';
}
zen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => $action), 'update', '`configuration_key`=\'SEO_USE_CACHE_' . $temp[1] . '\'');
usu_reset_cache_data('true');
break;
case 'disable':
$action = 'false';
zen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => $action), 'update', '`configuration_key`=\'SEO_USE_CACHE_' . $temp[1] . '\'');
usu_reset_cache_data('true');
break;
default:
}
return $action;
}
Bookmarks