kirby-matomo icon indicating copy to clipboard operation
kirby-matomo copied to clipboard

Cache folder seems to be empty when this plugin is active

Open psntr opened this issue 2 years ago • 2 comments

Hello there,

I notice this issue with the websites I'm working with. Separate hosting but same issue when this plugin is active, the cache folders doesn't create the static files cache although the folders does get created.

When I disable the plugin and run Matomo manually it's working.

Any ideas where that could come from?

psntr avatar May 18 '22 12:05 psntr

This is related to https://github.com/getkirby/kirby/issues/3976

The kirby()->user() call :

https://github.com/sylvainjule/kirby-matomo/blob/8662f8ec074369c605cb186b245a797c9bbbe68d/lib/matomo.php#L24

is preventing the page to be cached since 3.5.5. A fix is being worked on by the team if I understand it correctly, but currently the only solution I see is using pre 3.5.5 version, wait for 3.7 or allow tracking users.

sylvainjule avatar May 18 '22 13:05 sylvainjule

Thank you for the reply and the information, I wasn't aware of that current issue. Let's hope this got solved with the next release, because your plugin is a must!

psntr avatar May 19 '22 07:05 psntr