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.
- The topic ‘mfunc gets cached’ is closed to new replies.