laravel-charts icon indicating copy to clipboard operation
laravel-charts copied to clipboard

Added caching mechanism

Open Eruvaer74 opened this issue 1 year ago • 0 comments

As described in issue #74 (Optimization) the query is always select * from table which means that you always load thousands of models in bigger projects. In many cases, however, the data is not constantly updated so that the chart remains unchanged. For this purpose I have implemented a simple caching mechanism.

Just add a unique caching key and the number of seconds the data should remain in the cache.

Eruvaer74 avatar Oct 10 '24 09:10 Eruvaer74