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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user