Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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