• Resolved jetxpert

    (@jetxpert)


    “We can’t take it anymore” ??

    Every time we try to save your plugin’s settings, it reverts to the previous ones and/or does not accept the new ones. This has been going on for a long time.

    Yes, we have tried everything we can think of:

    (1) We use a browser in Incognito or Private Mode.

    (2) We have excluded all related wp-admin URLs from caching (URLs added to SG Optimizer, WP Rocket, and Cloudflare via Page Rules)

    (3) We are not blocking WP REST API.

    (4) We always clear our cache (local and global).

    Settings are saved ONLY after we click the “Purge SG Cache” button in our WP Dashboard and clear our browser cache.

    All other plugins have a “Save” button for saving plugin settings. Yours is the ONLY one that does not. Please add one (with magic attached to it) to guarantee saving our plugin settings.

    There are many posts reporting the same (or similar) issue.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @jetxpert

    Would it be possible to provide your site URL to check what is blocking the plugin settings from being saved?

    Regards,
    Stanimir

    Thread Starter jetxpert

    (@jetxpert)

    Hi @sstoqnov,

    Here you go: https://www.omniaaerospace.com

    Thank you.

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @jetxpert

    Cloudflare is caching the REST API endpoints, which is the reason why the options are not saved.

    They are saved in the database, but when we fetch the options from the REST API, the request doesn’t hit the origin server, nor the database.

    Please configure the Cloudflare properly, and everything should be working as expected.

    Here is a screenshot of the request:
    https://cloudup.com/c8Rq5iyjw74

    Regards,
    Stanimir

    Thread Starter jetxpert

    (@jetxpert)

    @sstoqnov,

    Thank you. That worked by creating a Cloudflare Page Rule with the following URL and Settings:

    URL: *mywebsite.com/wp-json/*
    Always Online: On
    Security Level: Medium
    Cache Level: Bypass

    Final Questions:

    (1) Other plugins have a “Save” button which clears all cache once its pressed, yours does not. Why? (we could avoid using the above page rule)

    (2) We added Page Rules (URLs) to Cloudflare to match the URLs provided by our WP Dashboard SG Optimzer page (see below). Obviously, it didn’t work. Why?

    URL: mywebsite.com/wp-admin/*
    Always Online: On
    Security Level: Medium
    Cache Level: Bypass

    (3) From our knowledge, above fix cannot be implemented if we’re using SG Opimizer’s new Cloudflare Workers feature. If wrong, please advise how can we implement it using your new Cloudflare feature.

    (4) Please update your affected knowledgebase and/or online documentation to reflect the above.

    Thank you.

    Plugin Author Stanimir Stoyanov

    (@sstoqnov)

    SiteGround Representative

    Hey @jetxpert

    1 – We purge the cache on each setting/optimization enable/disable. We don’t want our customers to press thousand of buttons to update a simple setting.

    2- I don’t know. Our Cloudflare optimization doesn’t use page rules.

    3- The worker that we upload checks the request and if a request to wp-admin/ is made, we simply redirect it to the origin server. We also monitor the cookies for logged-in users, woocommerce_items_in_cart, etc, so we don’t cache page that shouldn’t be cached.

    4- ok

    Thread Starter jetxpert

    (@jetxpert)

    Hi @sstoqnov,

    Thanks again for the quick reply. Always appreciated.

    Concerning (3), how does your new Cloudflare feature handle pages (news / blogs) that have a Comments section?

    For example, we use wpDiscuz. We have a Cloudflare Page Rule that bypasses the dynamic caching of the comments section of these pages.

    Again, thank you so much. The wp-json find was very helpful.

    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Settings Not Saved | Add “Save” Button’ is closed to new replies.