• Resolved omusman

    (@omusman)


    Hello:

    i want to preload a specific URL to cache it quickly as soon whole cache is purged, how can i achieve that ??

    Regards.

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

    (@salvatorefresta)

    Hi @omusman ,
    there is no option to manually preload a specific URL. You can attach few PHP lines to actions swcfpc_purge_all and swcfpc_purge_urls into your functions.php to fetch the URLs you want. For example:

    function fetch_my_url_after_purge() {
    
      wp_remote_get("https://www.example.com/my-page/");
    
    }
    
    add_action("swcfpc_purge_all", "fetch_my_url_after_purge");
    add_action("swcfpc_purge_urls", "fetch_my_url_after_purge");
Viewing 1 replies (of 1 total)
  • The topic ‘How to preload a specific URL’ is closed to new replies.