• Resolved valerio_cas

    (@valerio_cas)


    The cache not seem to be purging when I delete a post.

    I am using the WP All Import plugin to sync data, and I believe it uses the regular wp_delete_post() function to delete posts.

    Should the plugin be deleting the posts in this case?

    Is there a function or method in this plugin that I can use in a hook to trigger the cache to be cleared when the posts are deleted?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Georgi Ganchev

    (@georgiganchev)

    Hello @valerio_cas ,

    We are currently not familiar with the specific hooks utilized by the aforementioned plugin. For detailed information, we recommend consulting the plugin’s developers regarding the hooks they employ. However, I can confirm that the hook wp_trash_post will automatically purge the cache, provided that automatic purging is enabled in the Speed Optimizer plugin.

    Additionally, the automatic cache purge is triggered by the save_post hook, which is applicable when posts are deleted or edited.

    Best regards,
    Georgi Ganchev
    SiteGround.com

    Thread Starter valerio_cas

    (@valerio_cas)

    Okay, I’ve figured this one out.

    It was purging the cache on the posts in question, but not on the archive pages.

    I’ve solve by writing a function to purge the entire cache when the import has run.

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.