• Resolved José Miguel

    (@jomisica)


    Hello,

    In multisite is it possible to remove only a certain post / page per ID from the cache?

    Using functions like:
    wpsc_delete_post_cache;
    wp_cache_post_change.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yeah, look for the function wpsc_delete_post_cache.

    Thread Starter José Miguel

    (@jomisica)

    I’m working on a plugin, which will remove posts by ID in the “WP super cache” in multisite.

    It was just to confirm, the problem is in my plugin.

    Thanks for the time spent, and for your plugin too.

    • This reply was modified 5 years, 11 months ago by José Miguel.

    Create a plugin page, but I can not activate it, that page ID specifies that I want to delete.
    Then I want to create a cron so that every hour is regenerated.

    Thanks

    <?php
    /**
     * Plugin Name: WP Specify page Clear cache
     * Plugin URI: https://www.web.com
     * Description: Cache 
     * Version: 0.1
     * Author: Emanuel
     * Author URI: https://www.web.com
     *
     */
    
    function wpsc_delete_post_cache( $post_id ) {
    	$post_id = 18290;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘In multisite is it possible to remove only a certain post / page from the cache?’ is closed to new replies.