laravel-charts
laravel-charts copied to clipboard
Added caching mechanism
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.