xiaomlove / nexusphp

A private tracker application base on NexusPHP
https://nexusphp.org
GNU General Public License v2.0
856 stars 178 forks source link

add static variable for Setting::get #144

Closed Rey50 closed 1 year ago

Rey50 commented 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

image

After

image