mfunc gets cached
-
Basically, I’m trying to make my widget stay dynamic.
I’ve tried all the variations of mfunc syntax, but the code it’s meant to protect from caching still gets cached.
This is a sample of my code:
<!--mfunc echo ( is_user_logged_in() ) ? 'logged in' : 'logged out'; --><?php echo ( is_user_logged_in() ) ? 'logged in' : 'logged out'; ?><!--mfunc-->
I’m pretty sure W3 Total Cache reads the code properly as the mfunc tag disappears when viewed through the source code.
Page cache: Disk Basic is the only option that’s enabled, everything else is disabled.
If anyone knows a way to exclude the sidebar from getting cached I’ll gladly do that instead.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘mfunc gets cached’ is closed to new replies.