Many sites have the Global Redirect module enabled and the setting " Non-clean to Clean " enabled.
With this the site is always serving the clean urls so I guess we shouldn't include the non-clean urls in the expire array
Thats why I suggest to have the following change in the expire.module at expire_cache_derivative
change the lines 402-405
// Add given path
if ($path != '<front>') {
$expire[] = $path;
}
with this code
if (module_exists('globalredirect') ) {
/**
* Get the Global Redirect settings.
*/
$global_redirect_settings = _globalredirect_get_settings();
//Check if the Non Clean to Clean is enabled and also if clean urls are enabled
// IF false the add the current non-clean path to expire array
if( !($global_redirect_settings['nonclean_to_clean'] &&((bool)variable_get('clean_url', 0)))){
// Add given path
if ($path != '<front>') {
$expire[] = $path;
}
}
}
else{
if ($path != '<front>') {
$expire[] = $path;
}
}
Comments
Comment #1
spleshkaPlease, provide patch for that for 7.x-2.x branch.
Comment #2
spleshkaClose this task because of no progress. Feel free to reopen it if you have something to add.