greenpeace / planet4

Built on top of Wordpress tech, Greenpeace Planet 4 powers digital platforms to engage with millions and win campaigns around the world.
https://planet4.greenpeace.org
Creative Commons Attribution Share Alike 4.0 International
64 stars 26 forks source link

PLANET-6154 Disable sync of archived posts to ElasticSearch if archived posts are never included in search #169

Closed planet-4 closed 1 year ago

planet-4 commented 2 years ago

Currently we always sync the p3 archived posts to ElasticSearch, even when these are set to never be returned from the search results. In a lot of cases this more than doubles the total amount of data synced to ES, putting unnecessary strain on the cluster and making a full sync a lot slower. We can check the option at sync time and exclude the whole "archive" type if it's turned off for logged in users.

Tasks

Reporter: pvincent
Sections: Search, Technical Debt

Potentially affected repositories: planet4-master-theme

comzeradd commented 1 year ago

Done in https://github.com/greenpeace/planet4-master-theme/pull/1661