Page 1 of 1

Report Caching

Posted: Wed Nov 12, 2025 7:03 pm
by PeterG
When I run a PHP report in localhost the most recent changes are not displayed - even a day later. How can I get the report to reflect the latest changes short of clearing the cache each time, something I would prefer not to have to do?

Re: Report Caching

Posted: Wed Nov 12, 2025 7:43 pm
by Lech Kulikowski
Hello,

What do you mean by "recent changes are not displayed"? What changes are not applied?

Thank you.

Re: Report Caching

Posted: Thu Nov 13, 2025 10:31 pm
by PeterG
What I mean is that I am building the report and testing as I go along. If I add a field or move things around on the report, I don't see the change reflected in localhost. I'm building the report in the same folder that localhost points to so changes to the report should be reflected immediately.

Re: Report Caching

Posted: Mon Nov 17, 2025 8:30 am
by Lech Kulikowski
Hello,

The browser caches static files based on their URL.
You can use the following code to load the report:
$report->loadFile('../reports/SimpleList.mrt?v= . rand()');
This way, the URL changes each time, and the updates will be visible immediately.

Thank you.

Re: Report Caching

Posted: Wed Dec 03, 2025 10:35 pm
by PeterG
Thanks for the tip.

Re: Report Caching

Posted: Thu Dec 04, 2025 8:09 am
by Lech Kulikowski
Hello,

You are welcome.