Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter luanfernandes

    (@luanfernandes)

    Jhay, how can I send the file to you? I don’t wanna post it here since it includes my client’s website.

    Thread Starter luanfernandes

    (@luanfernandes)

    How do I send it to you?

    Thread Starter luanfernandes

    (@luanfernandes)

    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?

    • This reply was modified 5 years, 5 months ago by luanfernandes.
    Thread Starter luanfernandes

    (@luanfernandes)

    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.

    Thread Starter luanfernandes

    (@luanfernandes)

    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.

    Any news on this? I’m having the same issue

Viewing 6 replies - 1 through 6 (of 6 total)