Fragment Caching on function file
-
I have a one form, and I’m inserting it on page footer from a function file. I need to display a random form to each visitors and thus have a function developed to support this. However, with caching enabled the randomness doesn’t work.
The site is https://www.nopaccelerate.com/
So here, I need to exclude certain section of code from caching.
I tried to put the function inside Fragment Caching which should do the trick, but it gives parse error on the line where I added following code:
<!--MFUNC {the W3TC_DYNAMIC_SECURITY string} --> //echo rand(); // I have my custom code here <!--/mfunc {the W3TC_DYNAMIC_SECURITY string} -->
Any idea, how to use fragment caching on function file? I am fine with any other idea that works.
Looking forward to your response.
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Fragment Caching on function file’ is closed to new replies.