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

dev/event#14 Fix excessive cache clearing on creating an event #15140

Merged
merged 1 commit into from
Aug 26, 2019

Conversation

jaapjansma
Copy link
Contributor

Overview

When creating or updating an event CiviCRM clears all caches.

Before

There seems to have been an issue with Memcache, CiviCRM, Drupal and Events. That when you create an event and press continue you will got a permission denied. See https://issues.civicrm.org/jira/browse/CRM-6734
The fix for that issue was simply clearing all caches.

After

Removed the line for clearing the caches upon creating and updating events.
I have tested the fix with memcache enabled to see whether the permission denied problem reappeared but it did not.

Comments

This fix also improves performance

See related lab.civicrm.org issue: https://lab.civicrm.org/dev/event/issues/14

@civibot
Copy link

civibot bot commented Aug 26, 2019

(Standard links)

@civibot civibot bot added the master label Aug 26, 2019
@eileenmcnaughton eileenmcnaughton changed the title Fixed issue #14 Fix when you create an event and press continue you will got a permission denied. Aug 26, 2019
@eileenmcnaughton eileenmcnaughton changed the title Fix when you create an event and press continue you will got a permission denied. dev/event#14 Fix excessive cache clearing on creating an event Aug 26, 2019
@eileenmcnaughton
Copy link
Contributor

TBH I thought we might get test fails here - since if the list of events is cached 'somewhere' but in the absence of that I'm OK to merge. Underclearing of caches generally hits unit tests first.

@eileenmcnaughton eileenmcnaughton merged commit c9d43f1 into civicrm:master Aug 26, 2019
@jaapjansma
Copy link
Contributor Author

Thanks for merging. I also thought that the test would fail with removing a clear cache.

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

Successfully merging this pull request may close these issues.

2 participants