Hi,

If I check "Cache pages for anonymous users" and hit "Save configuration" the check box resets. There are no error messages in UI, Drupal logs or PHP logs.

I have tried the following.

Adding this line to settings.php
$conf['cache'] = TRUE;

Searching for the following statements in the contrib modules:
drupal_page_is_cacheable(FALSE);
$GLOBALS['conf']['cache'] = 0;
$GLOBALS['conf']['cache'] = CACHE_DISABLED;
$conf['cache'] = FALSE;

Disabling these modules:
- CAPTCHA
- Flag
- Asynchronous Prefetch Database Query Cache
- ThemeKey Redirect

None of those things worked. I do wonder if the Domain Access module might be involved. However, I can't disable that.

Does anyone have any further suggestions how I might identify the source of this problem?

Thank you.

Brett Sh

P.S. have looked on forums & found issues like this and followed suggestions but to no avail.
https://www.drupal.org/project/drupal/issues/2844374

Comments

BrettSh created an issue. See original summary.

brettsh’s picture

Issue summary: View changes
brettsh’s picture

Looked in the database, 'cache' is set to 1. So, something it must be something in code that is forcing the cache off.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.