Stop using refresh_date in civicrm_group table
authoreileen <emcnaughton@wikimedia.org>
Wed, 30 Dec 2020 03:17:33 +0000 (16:17 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 30 Dec 2020 05:17:54 +0000 (18:17 +1300)
commit826096b08e3d51cd75afc933c5eddb2462fcad22
tree905dda9853e027a92a10be5980b980bfae8049e8
parent43fd2d50323d1162d47578162c25d3dc070ceb79
Stop using refresh_date in civicrm_group table

I was looking to add indexes to civicrm_group.cache_date & civicrm_group.refresh_date - but I couldn't figure out why
the latter exists / is used. I went through the places it's used and it is simply a calculated version of
cache_date + smartGroupCacheTime and I can't see any value.

I can follow up on this with a removal if no-one else can see the point of it
CRM/Contact/BAO/GroupContactCache.php
tests/phpunit/CRM/Contact/BAO/GroupContactCacheTest.php