-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_version key never gets set correctly if /wp-admin/ lives at another domain #21
Comments
One solution may be to disregard the hostname portion, but that may not play well with multi-site features. |
I think I'm running into this as well, mind sharing exactly what you did to kludge around this? |
In the batcache manager plugin we're doing a string replace to switch the domain from our cms domain to the production domain: function batcache_clear_url($url) { if ( empty($url) ) return false; $url = str_replace("cms.site.com", "site.com", $url); ... I should also mention that we weren't actually using |
Thank you, I added that in. I still can't seem to conclude that batcache is handling my requests, though, as it still does not give me any feedback. |
Have you tried enabling the debug option? That will insert a comment at the end of your <head> tag with some stats. |
I did trie that, but it doesn't seem to have any effect. |
This means that you probably either don't have advanced-cache.php or WP_CACHE is not set or you're testing in a browser which has been logged in. |
The only place that the
_version
key gets set is in the batcache manager plugin. It usesget_permalink()
to determine the URL. This is a problem if/wp-admin/
is accessed through a different domain than the main site. For us it sets the key usingcms.site.com
, but batcache looks it up usingsite.com
, so it misses every time. I am not sure how to best fix this, but we have a nastystr_replace
hacked in for now.The text was updated successfully, but these errors were encountered: