Closed Rey50 closed 1 year ago
Add static variable cache for Setting::get , to avoid unnecessary reading of Redis. This patch can significantly decrease the amount of read times and page creating time.
为配置读取增加静态变量缓存,减少不必要的Redis读取. 这能够大幅降低各个页面的Redis读取次数,并且加快各页面的响应速度
Before
After
Add static variable cache for Setting::get , to avoid unnecessary reading of Redis. This patch can significantly decrease the amount of read times and page creating time.
为配置读取增加静态变量缓存,减少不必要的Redis读取. 这能够大幅降低各个页面的Redis读取次数,并且加快各页面的响应速度
Before
After