امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
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:
Read more
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:
کد:
$cache = $this->app()->cache();
$key = 'index_data_v1';
$cachedData = $cache ...
Read more
