KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Please explain file cache a little #1889

Open Richb201 opened this topic on on Feb 1, 2021 - 1 comments

Richb201 commented on Feb 1, 2021

There are two parts the setup report and the view. If I set the TTL to 60 (for example) does that mean that if a user reloads the page after 30 seconds, the setup report won't run again? Since I am doing filtering in the view (ie taxyear), I still need the view to run when a user refreshes a page.

KoolReport commented on Feb 3, 2021

I am sorry for my late reply on this. Cache will check the parameters of report (you can refer to $this->params), if there is no change in parameters at second 30, it will not run report again, rather it will load the previous result. But if there is change in parameters, it will run again. So if you want to use Cache for 60s but need refresh at second 30, you need to assign the change to $this->params. FYI, Our Inputs package is automatically doing this for you. So please bind your inputs with report using Bindable and POSTBinding.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None