Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flushCaches should respect permitCacheFlushMode #21468

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

mattwire
Copy link
Contributor

Overview

There is an option to prevent cache flushes CRM_Core_Config::isPermitCacheFlushMode() (currently only used by the importer) but it's only respected if we flush caches via the CRM_Contact_BAO_Contact_Utils::clearContactCaches() function which is bypassed by both opportunistic and deterministic (group contact) cache flushes. This means it's quite likely caches will be flushed anyway probably triggering deadlocks.

Before

Group contact cache flushed even if CRM_Core_Config::isPermitCacheFlushMode() returns FALSE when opportunistic/deterministic cache flush is triggered.

After

Group contact cache not flushed if CRM_Core_Config::isPermitCacheFlushMode() returns FALSE when opportunistic/deterministic cache flush is triggered.

Technical Details

Comments

@eileenmcnaughton

@civibot
Copy link

civibot bot commented Sep 14, 2021

(Standard links)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants