Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-03T09:27:51-05:00 http://www.primothemes.com/forums/feed.php?f=5&t=15191 2012-01-03T09:27:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15191&p=59527#p59527 <![CDATA[Re: Quick Cache + Domain Mapping ?]]>

Code:
add_action('ws_plugin__qcache_before_ajax_clear', 'dm_clear_routine_hook');
function dm_clear_routine_hook() {
   global $current_blog;
   $faux_blog = clone $current_blog;
   if (($nonce = $_POST["ws_plugin__qcache_ajax_clear"]) && wp_verify_nonce ($nonce, "ws-plugin--qcache-ajax-clear")) {
      if (function_exists('domain_mapping_siteurl') && is_object ($faux_blog) && $faux_blog->blog_id) {
         $faux_blog->domain = preg_replace('/https?:\/\//i', '', domain_mapping_siteurl(false));
         if (is_multisite () && !is_main_site () && $faux_blog && $faux_blog->domain && $faux_blog->domain != $current_blog->domain) {
            c_ws_plugin__qcache_purging_routines::purge_cache_dir ($faux_blog);
         }
      }
   }
}

Statistics: Posted by mboynes — January 3rd, 2012, 9:27 am


]]>
2011-12-31T18:48:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15191&p=59370#p59370 <![CDATA[Re: Quick Cache + Domain Mapping ?]]> Statistics: Posted by nickd32 — December 31st, 2011, 6:48 pm


]]>
2011-12-31T16:01:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15191&p=59363#p59363 <![CDATA[Re: Quick Cache + Domain Mapping ?]]> Statistics: Posted by wholmes — December 31st, 2011, 4:01 pm


]]>
2011-11-02T13:00:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15191&p=50807#p50807 <![CDATA[Re: Quick Cache + Domain Mapping ?]]> First off, thanks for a great plugin. I hope one day you use one of mine half as much as I use this so I can repay the awesomeness.

Second, I'm having this same issue. In looking through your code, it seems to be the best "global" fix would be to set the cache files by blog id instead of by domain. This way, if a site has multiple domains or if someone is using the domain mapper plugin and does not want the wordpress admin to redirect to the mapped domain, it will always work. If you'd like, I'd be happy to code up, test, and send it all back your way. I searched github to see if you have a repo there to facilitate this, but didn't find it -- do you have any mode of public collaboration I can use to get you the changes, or do you want me to just send you the changed files?

Thanks,
Matt Boynes

Statistics: Posted by mboynes — November 2nd, 2011, 1:00 pm


]]>
2011-09-22T17:05:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15191&p=38942#p38942 <![CDATA[Re: Quick Cache + Domain Mapping ?]]>
With that new file, the icon would never stop spinning. Makes me think it was clearing the cache for the entire WPMU network or something.

Statistics: Posted by nickd32 — September 22nd, 2011, 5:05 pm


]]>
2011-09-22T17:01:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15191&p=38941#p38941 <![CDATA[Re: Quick Cache + Domain Mapping ?]]>
I've replaced the file, but it doesn't seem to be working for me. When I click the "clear cache" button, the icon just keeps spinning, and the cache doesn't clear.

This is of course while I'm on the blog1.MySites.com/wp-admin/ link -- instead of the blog1.com/wp-admin/ link

Statistics: Posted by nickd32 — September 22nd, 2011, 5:01 pm


]]>
2011-09-20T21:28:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15191&p=38836#p38836 <![CDATA[Re: Quick Cache + Domain Mapping ?]]> /quick-cache/includes/classes/clearing-routines.inc.php
If you'd like to upload this file and let it override your existing copy, please let me know how it goes.
clearing-routines.inc.php.zip

Statistics: Posted by Jason Caldwell — September 20th, 2011, 9:28 pm


]]>
2011-09-17T20:58:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15191&p=38594#p38594 <![CDATA[Quick Cache + Domain Mapping ?]]>
http://premium.wpmudev.org/forums/topic ... ost-132596


Many WPMU users have turned to the Quick Cache plugin for its built-in multisite features. I've noticed a problem however with the "Clear Cache Manually (this blog only)" button that it installs in the upper right of the WP dashboard.

SCREENSHOT: http://cl.ly/1Z1G2R140R0v0U470720

Let's say I have a Multisite network on MySites.com with a sub-blog called blog1.MySites.com, which is mapped to blog1.com

If you click the "clear cache" button while on blog1.com/wp-admin/ the cache clears just fine. . .
BUT, if you happen to be on blog1.MySites.com/wp-admin/, it doesn't clear the cache.

This is frustrating for users who aren't able to see their changes and can't figure out why the cache isn't clearing when they click the button.

Any ideas?

Is there a way to let Quick Cache know that these two (blog1.com and blog1.MySites.com) are the same?

Statistics: Posted by nickd32 — September 17th, 2011, 8:58 pm


]]>