• Resolved jesus225

    (@jesus225)


    Hi Team,

    Thank you for this great plugin.

    I know the plugin looks for related posts/pages when flushing cache after some change has been made on a certain post, however, for websites made with page builders where editing one post can trigger changes in several other pages I would like to add an action on save_post to delete those extra pages cache.

    What action or function from your plugin should I call?

    Thank you very much in advance.
    Best regards.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Salvatore Fresta

    (@salvatorefresta)

    Hi @jesus225 ,
    to purge the whole cache use the following PHP command:

    do_action("swcfpc_purge_cache");

    To purge the cache for a subset of URLs use the following PHP command:

    do_action("swcfpc_purge_cache", array("https://example.com/some-page/", "https://example.com/other-page/"));

Viewing 1 replies (of 1 total)
  • The topic ‘Delete cache for Post ID’ is closed to new replies.