Closed (fixed)
Project:
Power BI Integration
Version:
2.0.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Feb 2026 at 11:14 UTC
Updated:
10 Mar 2026 at 09:21 UTC
Jump to comment: Most recent
Varnish cache doesn't deal with max-age, so it may cache the embed tokens past their expiration date.
Set up Varnish to cache pages for 6 hours, notice that for anonymous users the Power Bi reports stop working after an hour.
Add a sub-module that deals with the case where varnish is used and purges the varnish cache tags associated with pwbi elements on cron.
A new module with a configuration form.
none
none
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
bircherThe MR contains a modified version of what we implemented in a project.
That said the code here is untested. Nevertheless I think this can be reviewed.
Comment #4
bircherThe MR now contains tests
Comment #5
bircherOk! This is now completely ready for review and merging.
It has tests, a configuration form, works on Drupal 11 and 10. It is a drop-in solution you just turn on the module and configure how often cron runs and no other changes are needed for varnish or other caching mechanisms to start working and serving anonymous users power bi reports without stale embed keys.
Comment #6
birchera small note on the pipeline: I didn't make cspell eslint etc green because I saw that the MR for #3515944: Allow defining credentials in settings.php already does.
Comment #7
enriquelacoma commentedThe changes work as intended
Comment #9
enriquelacoma commentedComment #11
enriquelacoma commentedComment #12
iuliad commentedHello, this patch cannot be applied on the released 2.0.3. version (error: patch failed: src/Plugin/Oauth2Client/PwbiServicePrincipal.php:33), it's only applicable on the 2.x version, right? Thanks in advance!
Comment #13
enriquelacoma commentedHello, you are right #iuliad we intend to release a new version soon