• Resolved manishtechnians

    (@manishtechnians)


    Hi there,
    We are using a function that use Time() function.
    We want to prevent that function from caching.
    Please suggest a way to do that in W3 Total cache plugin

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manishtechnians

    Thank you for your question and I am happy to assist you with this.

    For this, you can use Page Fragment Caching and wrap the code with <mfunc>
    The comment/code blocks should be added to your theme template files as HTML and not within the PHP open (<?php) and close (?>) tags, as it will cause a PHP parse error/syntax error. Do not include any sensitive information in your code fragments; the code can be revealed if W3 Total Cache is deactivated, the Page Cache is changed to use an incompatible storage engine, or the defined W3TC_DYNAMIC_SECURITY string value is changed or not defined.
    Please check more details on our FAQ page.

    Thanks!

    Thanks!

    Thread Starter manishtechnians

    (@manishtechnians)

    Thanks Marko,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Prevent Caching a particular function’ is closed to new replies.