• Resolved skirridsystems

    (@skirridsystems)


    I have several sites using TablePress to generate nicely formatted tables. SG Optimizer purges the cache automatically when a page changes, but when a plugin changes DB content which the page imports then the page itself is unchanged and the cache doesn’t get purged, so users see the old version of the table.

    For Admins it’s always possible to click the Purge SG Cache button to fix this, but for Editor role, there is no way to purge the cache, so their edits to tables aren’t seen. This problem isn’t unique to Tablepress. Any plugin which generates content for a page is going to have a problem with caches.

    In the short term, is it possible to enable the ‘Purge Cache’ button for non-admin roles?

    As a long term solution we want the flush to happen automatically. Tablepress does attempt to flush some well-known caches like W3 Total Cache and WP Super Cache, but of course every cache is different and it can’t know about all of them. It would be good if WordPress itself had a wp_flush_cache() function which plugins could call and caches could hook into so that any plugin which needs to can request a cache flush from whichever cache is in use without having to know the details.

Viewing 1 replies (of 1 total)
  • Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hello there @skirridsystems,

    I would suggest contacting the TablePress developers if they are not using the standard hooks.

    We are purging the cache on the following events:
    – switching theme or customizing it.
    – creating, deleting, or editing a term.
    – saving, deleting a post
    – adding, deleting, updating post-meta
    – activating/deactivating a plugin
    – on adding, editing, deleting, changing the status of a comment.

    Kind regards,
    Stoyan

Viewing 1 replies (of 1 total)
  • The topic ‘Purge cache when plugin-generated content changes’ is closed to new replies.