I'm having an issue whereby clearing Civi cache is the only way to make some fields visible on a Drupal 7 user profile. I've tried to debug the issue and it seems to be caused by anonymous users viewing the account, where they don't have the permission to view those fields and it caches that result of seeing nothing.
My issue for now however, is that in Drupal's sites/default/civicrm.settings.php file, I've set the cache to:
define('CIVICRM_DB_CACHE_CLASS', 'NoCache');
I've debugged it and check that CIVICRM_DB_CACHE_CLASS
has not already been defined but Civi is still caching those results. How can I fix this or how else can I turn off Civi caching?
Logged in as admin, this is what the profile looks like before clearing caches:
templates_c
and immediately reload the page. If you see a difference, we've isolated the problem and can work on finding the root cause.