W3TC – MFUNC in a loop
-
Hi all, I’m hoping someone has an answer to this
I’m using W3TC for page caching and I’m filtering out a piece of my posts loop so that it does not get cached. For this example, it’s a custom meta field for the number of post views.
The value is not getting cached, so mfunc is working… but the issue I’m having is, all posts following the first post queried in the loop will have the same number of views value that was queried from the first post
Example:
If the first post only has 1 view, the rest of the posts will show 1 view even if they have many views.
Result from loop:
Post 1 – views 1
Post 2 – views 1
Post 3 – views 1When it should really be:
Post 1 – views 1
Post 2 – views 30
Post 3 – views 25For single post pages, the mfunc works correctly and shows the correct number of views for each post.
The topic ‘W3TC – MFUNC in a loop’ is closed to new replies.