From 00fcb2594eab74ee18c0be6a2420193ea922819c Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:53:26 +0200 Subject: [PATCH] Fix array_slice of query result cache --- includes/functions/_service-caching.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions/_service-caching.php b/includes/functions/_service-caching.php index cf77dc65..30499fd1 100644 --- a/includes/functions/_service-caching.php +++ b/includes/functions/_service-caching.php @@ -1559,7 +1559,7 @@ function fictioneer_save_query_result_cache_registry() { if ( $count > FICTIONEER_QUERY_RESULT_CACHE_LIMIT ) { $fictioneer_query_result_registry = array_slice( $fictioneer_query_result_registry, - $count - FICTIONEER_QUERY_RESULT_CACHE_LIMIT, + 0, FICTIONEER_QUERY_RESULT_CACHE_LIMIT, true );