KoolReport's Forum

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

Clear the cache #167

Open dimasmaliq opened this topic on on Dec 11, 2017 - 1 comments

dimasmaliq commented on Dec 11, 2017

is there any code to force clear the cache? let's say i have a login feature on my report, and then i used FileCache method with ttl = 3600. what would i do if i want to clear the cache when i logout from my report even though it's not 3600 seconds yet

KoolReport commented on Dec 11, 2017

The solution is that you pass to your report a parameter called "user_id", when you logout, the "user_id" is null. And the Cache depends on the report's parameter to load cache. When user_id is null (change from user_is has value), the cache is considered clear.

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
help needed
solved

Cache