Tagged: W3 Total Cache Troubleshooting
- AuthorPosts
- April 10, 2023 at 12:06 pm #85052Florian KrebberGuest
Hello there,
i am trying to achieve this for quite some time now but without any luck. W3 Total Cache is great and we would love to use it in production, but there is one major hassle for us: we use serverside tracking of basic visitor data. So whenever someone visits any page we add an action to a wordpress hook (wp_head in this instance) and write some data to the database.
However (and of course) when we activate the page cache feature of W3 Total Cache the hook/function is never fired. I thought when using the PageCache Disk: Basic feature i could at last fire some hooks before the cached php script is send to the visitor. But whatever i try the hook never gets fired when the cached version is send to the browser.
So, my question is: is there AN way to make basic serverside tracking working with W3 Total Cache PageCache feature?
Thanks and take care
FlorianApril 10, 2023 at 12:08 pm #85331Marko VasiljevicKeymasterHello Florian,
Thank you for reaching out and I am happy to assist you with this.
In W3 Total Cache Performance>Page Cache, there is a “Late initialization” setting. This is available with Disk: Basic or any memory-based caching.
Have you tried enabling this and see if it helps!?
Thanks!April 11, 2023 at 10:19 am #85344Florian KrebberGuestHey Marco,
thanks for the hint, i will try this. But on which hook/action/whatever is W3 Total Cache in Disk: Basic mode decides if it has to deliver the cached php script or cache it or do whatever?
And thus for: is there any action/hook reference ?
Thanks and take care
Florian - AuthorPosts
- The topic ‘Serverside Tracking with W3 Total Cache’ is closed to new replies.