• Resolved astupidmoose

    (@astupidmoose)


    Hello,

    I have an issue with one of my plugins getting cached when i do not want it to.

    Basically I have a “currency exchange ticker” which lives in the top bar of my site. Each page refresh should change this to show a valid current price. It seems the plugin is however becoming caught into the cache and only refreshes when cache is cleared from the users browser.

    Is there any easy way of excluding this block from the caching that is happening?

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

    (@vmarko)

    Hello @astupidmoose,

    You canse an AJAX request to dynamically load the value. Otherwise, use page fragment cache. More on Page fragment Cache on our FAQ page.

    Thread Starter astupidmoose

    (@astupidmoose)

    I’ve added a simple top bar line and cannot get it working (Straight PHP Works, but not this code in the FAQ).
    Have turned off minify and also checked I am on Basic as the documentation says. Also defined “define(‘W3TC_DYNAMIC_DATE’, ‘currentdate’);” in wp-config.php

    <!– mfunc currentdate echo date(‘Y-m-d H:i’); –><!– /mfunc currentdate –>

    Am I missing something?

    • This reply was modified 6 years, 3 months ago by astupidmoose.
    • This reply was modified 6 years, 3 months ago by astupidmoose.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to exclude custom plugin display from Cached results?’ is closed to new replies.