Enabling Dynamic Cache after a Drupal first installation $GLOBALS['conf']['cache'] is null
In my opinion the code:
function dynamic_cache_should_run() {
// If the CURRENT cache setting is TRUE there is no reason to hijack or to
// do any of the other checks that follow.
if ($GLOBALS['conf']['cache']) {
return FALSE;
}should be:
function dynamic_cache_should_run() {
// If the CURRENT cache setting is TRUE there is no reason to hijack or to
// do any of the other checks that follow.
if (isset($GLOBALS['conf']['cache']) && $GLOBALS['conf']['cache'] == TRUE) {
return FALSE;
}Let me know if this is correct and I'll make a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2561847.patch | 464 bytes | djdevin |
Comments
Comment #2
gnpgio commentedRight! Perfect!
I had a problem with an error at line 42 of file dynamic_cache_module . The module "Eu Cookie law" did not work but thanks to this change now it works!
Thank you so much!
Comment #3
djdevin