• Resolved joshuazire

    (@joshuazire)


    hello. there is way to declare: do not cache custom php code. i had to put random text output in footer template. can i have an example ? something like this i want:

    if do not cache() { echo 'rand text'; } else {}

    thank you

    • This topic was modified 4 years, 7 months ago by joshuazire.
    • This topic was modified 4 years, 7 months ago by joshuazire.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey, do you already have solution here?

    Thread Starter joshuazire

    (@joshuazire)

    no. only solution is to add code in “wp-super-cache/plugins/dynamic-cache-test.php”. delete example 1 from there. in code example 2: put your code between ob_start(); and $text = ob_get_contents(); . and follow the instructions from wp-admin to enable dynamic cache.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘do not cache custom php code’ is closed to new replies.