Plugin Contributor
Fred
(@fredawd)
Is caching completely failing? What is the URL of your site? You mat also see if increasing Maximum size for DOM parser buffer helps.
I temporally switched to wp rocket because their plugin is working. You can check here:
https://newtest.luanfernandes.com
I’m considering changing to swift pro but first I need to be sure that it’s going to work.
Plugin Contributor
Fred
(@fredawd)
Okay, but you didn’t answer my questions or try to increase max. size for DOM parser. Anyway, Swift Performance Pro comes with a 14-day money back guarantee, so no risk and also with excellent support 🙂
It is working. I think my problem was with Apache+NGINX.. I changed to NGINX only and now it seems to be working (I increased the DOM parser max size as well, just in case).
Do you have any tutorial on how to setup NGINX with you guys? I have a .conf for wp-rocket files (using try_files with the right path naming) and I was wondering if you happen to have something similar.
Yes! It helps a lot. I found something weird, but I’m not a coder though:
###BEGIN Swift Performance###
set $swift_cache 1;
if ($request_method = POST){
set $swift_cache 0;
}
if ($args != ”){
set $swift_cache 0;
}
if ($http_cookie ~* “wordpress_logged_in”) {
set $swift_cache 0;
}
if ($request_uri ~ ^/wp-content/cache/swift-performance/([^/]*)/assetproxy) {
set $swift_cache 0;
}
if (!-f “/home/runcloud/webapps/wordpress/wp-content/cache/swift-performance//$http_host/$request_uri/desktop/unauthenticated/index.html”) {
set $swift_cache 0;
}
set $swift_mobile_cache 1;
if (!-f “/home/runcloud/webapps/wordpress/wp-content/cache/swift-performance//$http_host/$request_uri/mobile/unauthenticated/index.html”) {
set $swift_mobile_cache 0;
}
if ($http_user_agent ~* (Mobile|Android|Silk|Kindle|BlackBerry|Opera+Mini|Opera+Mobi)) {
set $swift_cache “{$swift_cache}{$swift_mobile_cache}”;
}
if ($swift_cache = 11){
rewrite .* /wp-content/cache/swift-performance/$http_host/$request_uri/mobile/unauthenticated/index.html last;
}
if ($swift_cache = 1){
rewrite .* /wp-content/cache/swift-performance/$http_host/$request_uri/desktop/unauthenticated/index.html last;
}
###END Swift Performance###
Is it supposed to be 11 there?