Page MenuHomePhabricator

Update the frequency of smart-group cache refresh
Closed, ResolvedPublic2 Estimated Story Points

Description

We now have the delete_deleted_job that causing a lot failmail and db deadlock, and it might related with the cache refresh mode been set to opportunistic, which might get triggered every time we delete a contact, so here is the proposed solution:
1: update the setting [smart_group_cache_refresh_mode] => opportunistic
2: (with that we would also need a cron possibly to flush smart group cache from time to time)
3: turn back the delete_deleted_job with smaller patch size and less frequent

Event Timeline

AnnWF renamed this task from Update the frequency of clear cache clear to Update the frequency of cache refresh.Oct 20 2022, 5:55 PM
AnnWF added a project: FR-Alerts.
Eileenmcnaughton renamed this task from Update the frequency of cache refresh to Update the frequency of smart-group cache refresh.Oct 31 2022, 8:04 PM
Dwisehaupt set the point value for this task to 2.Nov 4 2022, 4:39 PM

To see the Settings fields for this value you can run cv api4 Setting.getFields '{"where":[["name","=","smart_group_cache_refresh_mode"]]}' or you could use the API Explorer

greg triaged this task as Medium priority.Nov 15 2022, 10:04 PM
Ejegg subscribed.

Looks like this is all set. smart_group_cache_refresh_mode is currently set to 'opportunistic', and the delete_deleted_contacts job is running without deadlocking everywhere

XenoRyet set Final Story Points to 1.