Add $asArrayCacheKey property to db_object_t for caching support

- Introduced `$asArrayCacheKey` as a dedicated property for `asArray` method caching.
This commit is contained in:
Jeppe Bundgaard
2025-11-28 10:43:44 +01:00
parent 1cdaa230d8
commit 935af48b44
@@ -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