I would appreciate if anyone could give insight into the different types of caches used by XF. Specifically, when to use which cache?
In my case, I've an API response that I'm supposed to cache for 15 minutes. Atm, I do store the data in Data-Registry using the XenForo_Model_DataRegistry class. On the other hand, I've prepared a cron script deletes cached cron entries from the xf_data_registry table. I'll run this cron script every 15 minutes.
Was wondering if there's a better approach to achieve this? I'm not sure if I could used SimpleCache for that as well?
In my case, I've an API response that I'm supposed to cache for 15 minutes. Atm, I do store the data in Data-Registry using the XenForo_Model_DataRegistry class. On the other hand, I've prepared a cron script deletes cached cron entries from the xf_data_registry table. I'll run this cron script every 15 minutes.
Was wondering if there's a better approach to achieve this? I'm not sure if I could used SimpleCache for that as well?