• Resolved Marcos

    (@cg2group)


    Hello!

    First of all I would like to thank you for this great plugin!

    I use wp-rocket as a cache plugin and I have noticed that every time an auto republish occurs, all cache is cleared through the function “rocket_clean_domain”: /wp-content/plugins/wp-auto-republish/includes/cache.php

        # Purge WP Rocket
        if (function_exists('rocket_clean_domain')) {
        	rocket_clean_domain();
        }
    

    What’s the code for purging an individual post? I try:

    	# Purge WP Rocket
        if (function_exists('rocket_clean_post')) {
            rocket_clean_post($post_id);
        }
    

    But unfortunately it didn’t work!

    Could you give me a hand?

    Thanks

    Marcos

    • This topic was modified 5 years, 1 month ago by Marcos.
  • The topic ‘What’s the code for purging an individual post? WP Rocket’ is closed to new replies.