hi
im planning on using Aelia Currency Switcher, based on their article.
https://aelia.freshdesk.com/support/solutions/articles/3000042591-how-to-add-dynamic-caching-to-your-site
i have put the nginx code in my conf folder.
but i still cant get it to work.
this is the code i added to conf/nginx/aelia.conf
# Add Aelia cookies to the cache key. This will create multiple copies of each
# cached page (one for each combination of currency, country and province/state)
proxy_cache_key "$scheme$request_method$host$request_uri $cookie_aelia_cs_selected_currency$cookie_aelia_customer_country$cookie_aelia_customer_state$cookie_aelia_billing_country";
# IMPORTANT
# This is an example configuration file, and the settings apply to the entire server.
# You should probably adapt these settings to apply to a specific location, instead,
# so that they only affect your specific ecommerce site.
#
# If you are not familiar with Nginx configuration, we recommend to contact your
# developer, or hosting provider, who should be able to adjust the settings for you.
set $no_cache 0;
# If none of the Aelia cookies are set, disable caching. This will ensure that
# the page is loaded dynamically, and that cookies are set at the next load
if ($cookie_aelia_cs_selected_currency$cookie_aelia_customer_country$cookie_aelia_customer_state$cookie_aelia_tax_exempt ~* "") {
set $no_cache 1;
}
# Don't pull from cache based on $no_cache
fastcgi_cache_bypass $no_cache;
# Don't save to cache based on $no_cache
fastcgi_no_cache $no_cache;
can anyone guide me on how to do dynamic caching on EE? im using EE+wpredis.
Thanks