Entity Cache module
Overview
When you have microflows that do a lot of retrieves of the same entity you can use this module to reduce the number of database queries by storing them in the cache. The **Entity Cache module** supports multiple entities but only stores one per type (like 1 systemsettings object, 1 emailsettings object etc).
Documentation
Entity Cache module
When you have microflows that do a lot of retrieves of the same entity you can use this module to reduce the number of database queries by storing them in the cache. The Entity Cache module supports multiple entities but only stores one per type (like 1 systemsettings object, 1 emailsettings object etc).
Performance
11 ms for 1000 retrieves from cache vs 2476 ms for 1000 database retrieves!
Current functions
- JA_ReplaceEntityInCache
- JA_RetrieveEntityFromCache
- JA_RemoveEntityFromCache
Example microflow to get or create a cached object
Use this pattern to make sure you always have a correct object (either from the cache, from the database or, the newly created object).