• Resolved NaturalEnquirer

    (@naturalenquirer)


    Your plugin works fine on my live site. When I pushed it to staging, the test cache fails. I looked at headers and they do say Dynamic. I tried disabling and enabling cache. I also tried updating settings on the staging site with no change. I did not make any changes to the existing API/ authentication settings.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Cause the cache rule added was for the live site and not for the staging site. Check the cache rule in your cloudflare account.

    Thread Starter NaturalEnquirer

    (@naturalenquirer)

    Is that a rule created by your or another plugin? (I wouldn’t even know how to create that rule…) Anyway how would I add staging site to the rule? Or should I delete the entire rule? Here is what is there now. Thanks for advice.

    (http.host eq “natureinfocus.com” and http.cookie ne “comment_” and not http.cookie contains “auth_” and not http.cookie contains “comment_author” and not http.cookie contains “wordpress_logged_in_” and not http.cookie contains “wordpress_sec_” and not http.cookie contains “wordpresspass_” and not http.cookie contains “wordpressuser_” and not http.cookie contains “wp-resetpass-” and not http.request.uri.path contains “.php” and not http.request.uri.path contains “.xml” and not http.request.uri.path contains “.xsl” and not http.request.uri.path contains “/dashboard/” and not http.request.uri.path contains “/register/” and not http.request.uri.path contains “phs_downloads-mbr” and not http.request.uri.query contains “nocache” and not starts_with(http.request.uri.path, “/wp-json/”) and not starts_with(http.request.uri.path, “/wp-login”) and not starts_with(http.request.uri.query, “p=”) and not starts_with(http.request.uri.query, “s=”) and not starts_with(http.request.uri.path, “/wp-admin”) and not http.cookie contains “dshack_level” and not http.cookie contains “edd_items_in_cart” and not http.cookie contains “it_exchange_session_” and not http.cookie contains “mp_globalcart_” and not http.cookie contains “mp_session” and not http.cookie contains “noaffiliate_” and not http.cookie contains “upsell_customer” and not http.cookie contains “wishlist_reg” and not http.cookie contains “wlmapi” and not http.cookie contains “woocommerce_” and not http.cookie contains “xf_” and not http.cookie contains “yith_wcwl_products” and not http.request.uri.path contains “/checkout/” and not http.request.uri.path contains “/members-area/” and not http.request.uri.path contains “/wishlist-member/” and not http.request.uri.query contains “nowprocket” and not starts_with(http.request.uri.path, “/edd-api/”) and not starts_with(http.request.uri.path, “/mepr/”) and not starts_with(http.request.uri.path, “/wc-api/”))

    Plugin Contributor iSaumya

    (@isaumya)

    Yes it is created by this plugin.

    Where you see http.host eq “natureinfocus.com”

    Change that to Hostname -> is in > natureinfocus.com staging.natureinfocus.com

    This should solve your issue.

    Thread Starter NaturalEnquirer

    (@naturalenquirer)

    Thank you! All fixed.

    Plugin Contributor iSaumya

    (@isaumya)

    Great to hear that ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘works on live site but not staging site’ is closed to new replies.