• Resolved skirridsystems

    (@skirridsystems)


    Hi Tobias,

    Today I have seen a strange problem with the internal cache. Another user reported something similar with dates not updating and the cache_table_output=false shortcode option also fixed it for me.
    https://wordpress.org/support/topic/strange-update-situatio/

    I have set up a demo page here for a site which has only one table.
    https://poyntonprobus.org.uk/test/

    The same table is inserted twice, the top one using the TP block and the bottom one using a shortcode with cache_table_output=false. When viewed as a logged-in user, both instances show the new table, but a normal viewer sees the stale cache version for the top table.

    I love the block feature and the fact that it shows a preview, but this caching issue makes it unusable in this particular instance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi @skirridsystems,

    Thanks for your post and sorry for the trouble!

    You can of course also use this parameter with the “TablePress block”! Just put cache_table_output=false into the “Configuration parameters” field in the “Advanced” section of the sidebar panel for the block.

    Now, a maybe even better solution would be to trying fixing the root cause, broken/stale transients in the wp_options database table. For that, please see https://wordpress.org/support/topic/updates-to-tablespress-content-not-showing/#post-8846880

    Best wishes,
    Tobias

    Thread Starter skirridsystems

    (@skirridsystems)

    Thanks! So this is a (very old) bug in the WP transients system where they can’t be deleted properly?

    As the chances of that getting fixed any time soon are slim, is there a hook I can use to disable the caching in TablePress? The output should in any case be cached by my host’s caching system.

    Simon

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Yes, this is some oddity in the transients system, unfortunately 🙁

    Yes, turning off the caching in TablePress globally is no problem. Just use the mentioned small plugin from my link above (it’s just a few lines of code for that hook).

    Best wishes,
    Tobias

    Thread Starter skirridsystems

    (@skirridsystems)

    Great, thanks. I’ll install that plugin

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress in the plugin directory. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Internal cache problem’ is closed to new replies.