- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 24,592
- راهحلها
- 27
- پسندها
- 3,278
- امتیازها
- 113
- سن
- 28
- محل سکونت
- England
- وب سایت
- xenforo.xyz
Hi everyone,
I'm building a custom addon for XenForo 2.3.x and I'm trying to implement caching in my controller to reduce database queries on my homepage. I'd appreciate some guidance on the correct approach.
What I'm trying to do:
Cache the result of multiple finder queries (threads, statistics) so they don't hit the database on every page load.
My current approach:
Fetching from cache:
PHP:
I'm building a custom addon for XenForo 2.3.x and I'm trying to implement caching in my controller to reduce database queries on my homepage. I'd appreciate some guidance on the correct approach.
What I'm trying to do:
Cache the result of multiple finder queries (threads, statistics) so they don't hit the database on every page load.
My current approach:
Fetching from cache:
PHP:
