2sic / 2sxc

DNN + 2sxc = #DNNCMS - This tool helps web designers and developers prepare great looking content in DNN (DotNetNuke). It's like mixing DNN with Umbraco and Drupal :)
http://2sxc.org
MIT License
145 stars 40 forks source link

LightSpeed: use MemoryCache to count, not callbacks #3460

Closed tvatavuk closed 2 months ago

tvatavuk commented 2 months ago

I'm submitting a

[x] feature request

...about

[x] other / unknown

Current Behavior / Expected Behavior

The current implementation of LightSpeedStats in the LightSpeed class uses callbacks to count items and sizes. This approach can be optimized by leveraging MemoryCache directly for counting, which would simplify the code and improve performance.

Your environment