From bd81168b75c763a5eae59dc904da4abc2013dd7d Mon Sep 17 00:00:00 2001 From: tbradsha Date: Mon, 6 Jan 2025 19:06:44 +0000 Subject: [PATCH] Jetpack CRM: Fix hundreds of unneeded db queries (#40711) * Add a cache to mitigate the problem. * changelog * Add line break at the end of the changelog file * Update cache when making single settings requests * Declare variable to satisfy static code analysis * Force settings refresh from db * Change self to static to allow dynamic resolution * Refactor entire mitigation cache for issue 3504 * Change $key default value from 0 to false Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12638546446 Upstream-Ref: Automattic/jetpack@7c2138857728fe5a144e15433ad46130a1794469