I encountered the exact environment (WP Super Cache with GeotargetingWP) and although this plugin is not maintained anymore, it works like a charm with all of the latest updates of WordPress and the rest of plugins.
Just update protected $max_v2download_url
in plugin_folder/inc/update_maxmind.php
to alternative url/source of that file that is needed only for the first enabling of the functionality.
Hi i think the plugin might be broken! https://imgur.com/ddYZyjD
Warning mkdir(): Invalid path 1
-
CCWPSCcountryCache->__construct()
wp-content/plugins/country-caching-extension-for-wp-super-cache/inc/ccwpsc_settings_form.php:64
CCWPSCcountryCache->validate_wpsc_custpath()
wp-content/plugins/country-caching-extension-for-wp-super-cache/inc/ccwpsc_settings_form.php:113
mkdir()
wp-content/plugins/country-caching-extension-for-wp-super-cache/inc/ccwpsc_settings_form.php:781
wp-content/plugins/country-caching-extension-for-wp-super-cache/inc/ccwpsc_settings_form.php:781
]]>
Hi,
first of all thank you for this great plugin! It will solve most of my problems. But I have one more and I don’t know if this plugin would solve it the way it is coded right now…
In Spain there are some regions that are VAT excluded (Canary Islands for instance), so ?is it possible to have a cache based on states/provinces? As I can see in the docs you can put country codes to have different caches, but I need also to have different caches between regions in the same country.
I need ES caching (21% VAT) and then Canary Islands caching (0% VAT). The problem I have is that the pages cached to users on the Canary Islands are shown to users on other regions of Spain and the other way too, users on the Canary Islands see prices with VAT as the pages are cache generated when a user in Spain sees the page.
If you have the code on github I would try to figure it out and do a PR.
Summing up, what I need is to create unique cache files to country:region, something like ES:TF, where ES stands for Spain, and TF stands for Tenerife.
I know it’s not easy to figure it out but lets give it a try ;D
]]>It seems like WP Super Cache does not create any Super Cache file when Geolocate with caching is enabled due to the v string.
Does this plugin enable this ?
]]>For Country Caching to work with WPSC 1.5.4+ you will need to set the following settings on WP Supercache.
Dashboard->settings->WP SuperCache
On the advanced Tab:
Set “Cache Delivery Method” to Simple
And check/tick “Cache HTTP headers with page content.”
Hey,
I have an idea where we perhaps could use the CloudFlare headers to utilise the htaccess version of the caching.
I think we can to use the key of the country for the cache location, but in order to do so, the htaccess has to be customised to something like this (on all the rules of SuperCache:
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/{%CF-IPCountry}/index-https.html.gz -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/{%CF-IPCountry}/index-https.html.gz" [L]
Do you think that would work? It would only work for ALL countries I think, maybe more complexities can be added later.
I’d be happy to help out on the code & testing !
https://www.ads-software.com/plugins/country-caching-extension-for-wp-super-cache/
]]>