From 935af48b44d285c309c9f6ecec7368520f34b6af Mon Sep 17 00:00:00 2001 From: Jeppe Bundgaard Date: Fri, 28 Nov 2025 10:43:44 +0100 Subject: [PATCH] Add `$asArrayCacheKey` property to `db_object_t` for caching support - Introduced `$asArrayCacheKey` as a dedicated property for `asArray` method caching. --- services/nginx/app/traits/db_object_t.php | 1 + 1 file changed, 1 insertion(+) diff --git a/services/nginx/app/traits/db_object_t.php b/services/nginx/app/traits/db_object_t.php index f39ffb7f..4532cd14 100644 --- a/services/nginx/app/traits/db_object_t.php +++ b/services/nginx/app/traits/db_object_t.php @@ -49,6 +49,7 @@ use objects\users_o; trait db_object_t { + public static string $asArrayCacheKey = 'as_array'; // The cache key for the asArray function public static int $cashierNameCacheExpiration = 300; // The cashier name cache expiration time, in seconds. Default is 1 day (86400 seconds). public static int $economicCustomerNameCacheExpiration = 86400; // The economic customer name cache expiration time, in seconds. Default is 1 day (86400 seconds). public static int $asArrayCacheExpiration = 600; // The id of the object in the database