AtlasOfLivingAustralia / data-management

Data management issue tracking
7 stars 0 forks source link

Add refresh cache API call to switch SOLR alias #918

Closed sadeghim closed 5 months ago

sadeghim commented 1 year ago

There is a common issue with the biocache-hub that shows cached value for the old collection along with the number of records in the recently switched over collection. Something like:

There is 1,043,568 records returned of 1,043,235 for this search: https://biocache.ala.org.au/occurrence/search?q=collection_uid%3Aco12&qualityProfile=ALA&disableAllQualityFilters=true

sadeghim commented 5 months ago

Currently biocache-hub doesn't support an API call to reset the DQ cache. The code on biocache-hub is here:https://github.com/AtlasOfLivingAustralia/biocache-hubs/blob/ed930bd26c6b1066d384a0ed0530395915598fd3/grails-app/controllers/au/org/ala/biocache/hubs/AdminController.groovy#L83

Should be done manually through admin section of biocache.