Keşfet

Caching results of a query

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
3,201
Tepkime puanı
284
Konum
Türkiye
Web sitesi
fivetu.xyz
Hi
I have a couple of custom widgets that execute database queries using finders. These queries don’t need to run frequently because the results do not change often.
Our forum board is fairly busy, sometimes with 6,000 simultaneous users, and executing these queries for every user is overloading our database and affecting performance.

How can I cache the results of these finder queries for at least 30 minutes, and then refresh the cache only when it expires?

Thanks!
 

Konu görüntüleyen kullanıcılar

Geri
Üst Alt