Title: Multisite page cache purging
Last modified: January 12, 2019

---

# Multisite page cache purging

 *  Resolved [entangler](https://wordpress.org/support/users/antenn/)
 * (@antenn)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/multisite-page-cache-purging/)
 * Hi!
 * I am having trouble flushing front page cache of a multisite main site. On the
   front page there are posts listed from different subsites and I am trying to 
   find a way to flush the page cache whenever a subsite is publishing or updating
   a post.
 * I tried using w3tc_flush_url() function inside the save_post hook, but it does
   not seem to work for the main site (subsite’s front page is purged automatically
   on post update and is working fine):
 *     ```
       function clear_cache_network( $post_id ) {
           if ( wp_is_post_revision( $post_id ) )
               return;
   
           // Flush main site front page cache
           if ( function_exists('w3tc_flush_url') ) {
               w3tc_flush_url( get_home_url(1, '/') );
           }
       }
       add_action( 'save_post', __NAMESPACE__ . '\\clear_cache_network', 10, 3 );
       ```
   
 * `w3tc_flush_url( get_home_url(1, '/') )` flushes the cache perfectly when called
   from the main site though. Am I missing something or is there another way to 
   achieve what I described?
 * Thanks for your attention!

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/multisite-page-cache-purging/#post-11118167)
 * Hello,
    This is not supported at the moment. We are already aware of this issue
   and we are working on a fix for future release.
    -  This reply was modified 7 years, 3 months ago by [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/).

Viewing 1 replies (of 1 total)

The topic ‘Multisite page cache purging’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [page-cache](https://wordpress.org/support/topic-tag/page-cache/)
 * [post update](https://wordpress.org/support/topic-tag/post-update/)
 * [Purge](https://wordpress.org/support/topic-tag/purge/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/multisite-page-cache-purging/#post-11118167)
 * Status: resolved