Atakan KOC
Guest
offline
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
Continue reading...
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:
Code:
$cache = $this->app()->cache();
$key = 'index_data_v1';
$cachedData = $cache ...
Read more
Continue reading...