Title: Clearing cache with WPML
Last modified: August 22, 2016

---

# Clearing cache with WPML

 *  [scottconnerly](https://wordpress.org/support/users/scottconnerly/)
 * (@scottconnerly)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/clearing-cache-with-wpml/)
 * I am trying to: Clear all WP-Super-Cache files from the admin while using wpml.
   org
 * I visited this URL: /wp-admin/index.php?action=delcachepage&path=%2Fwordpress%
   2Fwp-admin%2Findex.php&_wpnonce=76a304b1ef
 * I expected to see: all the multilingual domains’ cache files deleted from ABSPATH/
   wp-content/cache/supercache/
 * Instead, I got: only the files for the ‘home’ URL were deleted. See admin_bar_delete_page
   in wp-cache.php. It asks for get_supercache_dir() which calls get_option( ‘home’).
   I am hoping for WP-Super-Cache to check for all hosts associated to the current
   installation and clear those too. See option icl_sitepress_settings, key ‘language_domains’.
 * A similar ticket was just logged with WPML. You guys could coordinate on the 
   best way to approach this.
 * [https://wordpress.org/plugins/wp-super-cache/](https://wordpress.org/plugins/wp-super-cache/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [scottconnerly](https://wordpress.org/support/users/scottconnerly/)
 * (@scottconnerly)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/clearing-cache-with-wpml/#post-5297268)
 * They tell me to tell you to do this:
    [http://wpml.org/documentation/theme-compatibility/go-global-program/](http://wpml.org/documentation/theme-compatibility/go-global-program/)
 * Which sounds like a lot of effort.
    If you could just put an action hook in admin_bar_delete_page
   before the wp_redirect, I can do what I need to from there. I looked at the other
   filters that could have been in play (wp_super_cache_supercachedir), but that
   didn’t seem optimal.
 * I suppose if you decide to skip this feature request, I might use a parallel 
   test of isset( $_GET[ ‘action’ ] ) && $_GET[ ‘action’ ] == ‘delcachepage’ .

Viewing 1 replies (of 1 total)

The topic ‘Clearing cache with WPML’ is closed to new replies.

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

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [multi-lingual](https://wordpress.org/support/topic-tag/multi-lingual/)

 * 1 reply
 * 1 participant
 * Last reply from: [scottconnerly](https://wordpress.org/support/users/scottconnerly/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/clearing-cache-with-wpml/#post-5297268)
 * Status: not resolved