We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe83e66 commit ffdd745Copy full SHA for ffdd745
2 files changed
.changeset/new-swans-trade.md
@@ -0,0 +1,5 @@
1
+---
2
+"@headstartwp/headstartwp": patch
3
4
+
5
+Fix: only flush app settings cache when updating app settings option
wp/headless-wp/includes/classes/API/AppEndpoint.php
@@ -223,7 +223,7 @@ public function prepare_menus( $menu ) {
223
* @return void
224
*/
225
public function maybe_invalidate_cache( $option_name ) {
226
- if ( self::$cache_key_store !== $option_name ) {
+ if ( self::$cache_key_store === $option_name ) {
227
$this->invalidate_cache();
228
}
229
0 commit comments