• Resolved beauvafr

    (@beauvafr)


    In my TablePress table, I’m using shortcode from annother plugin to call data. The plugin called data from an API.

    However, it sees that data is not refreshed to the API data when refreshing the page. I tried several times. But not waited for hours tough.. the only way to get the good data is to return to Tablepress admin, open the table, save it again without modifying it, and the refresh the page.

    Using the same shortcode on a normal WP page and refreshing the page show the newly and correct data from the API.

    Does Tablepress cache the returned element from the plugin/API? How long? How can I control it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi!

    Thanks for your post and sorry for the trouble!

    TablePress does indeed have its own caching mechanism for the table output, so that Shortcodes are not always evaluated. The normal caching duration is 24 hours. The cache is also cleared whenever you save the table.

    Turning the cache off for a table is also possible, and that’s probably what you will want to do here. For that, just add

    cache_table_output=false

    as another parameter to the [table ... /] Shortcode on the page where you embedded the table, or the “Configuration parameters” field in the “Advanced” section of the “TablePress table” block, if you are using that in the block editor.

    Best wishes,
    Tobias

    Thread Starter beauvafr

    (@beauvafr)

    Thanks a lot, worked as a charm!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi @beauvafr,

    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 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.