I just have finished the cache handler in jSunnyreports. I have done a preliminary test, here are the results:
465 files from the Solarmax 2000S PDL logger ( 2 years of data ).
- jSunnyreports 184.108.40.206b6 without cache : 63 seconds
- jSunnyreports 220.127.116.11A WITH cache (cachesave ON): 37,6 seconds ( 1 file was changed ).
- jSunnyreports 18.104.22.168A WITH cache ( cachesave OFF ): 30 seconds ( 1 file was changed ).
A 25,4 seconds performance gain between these two versions. That is a 40% performance gain. And with cache save off a further 6 seconds decrease ( 50% performance boost )
All the coding is done, I’m currently testing this new version if I can find any errors.
I can make another improvement. Loading and saving the cache is still quite expensive to do. Instead of saving the cache all the time I could add a “save once a day” mechanism.