APO - Cant turn it off

hi,

i tried APO, i wanted then to disable it, but i thin i cant, i see all the time my back end cached and the website acts weird.

i saw other posts that you propose the following

You should be able to disable APO via API call: Cloudflare API v4 Documentation.

but im not sure that that link explains what i have to do!

Any help would be much appreaciated.

regards

Hi,

Try running this command on your command-line interface, after replacing the relevant [keys]:

curl -X PATCH "https://api.cloudflare.com/client/v4/zones/[YOUR CF Zone ID]/settings/automatic_platform_optimization" -H "X-Auth-Email: [YOUR CF Email]" -H "X-Auth-Key: [YOUR CF API Key or Token]" -H "Content-Type: application/json" --data '{"value":{"enabled":false}}'

Hi, thanks i will try, but i have to set this by login to the whole server with ssh? or to the site with the issue? because i am not sure that is possible anymore with Cloudflare that change the ip of that website so that i can manage to ssh to that website.

regards

Στιγμιότυπο οθόνης 2023-03-10 082709

i did this to the root, it indeed affected the page that i had the problem only, i see as a result success. but the back end is a mess, it is cached still.

regards

Go do the Dashboard > Cache > Configuration and hit the Purge All button. Partial purges won’t help you here. Then visit your site in an incognito window to check if cached content is still there.

hi,

i think i have found the issue, there was a rule on the rules page of Cloudflare that cached everything with the asterisk!!!

mywebsite.com/ *

the thing is that i did not set that rule! i guess some plugin did it, and on the uninstallation stuck without deleting it! Anyway, that may help other people with the same issue. Thanks for your help.

regards

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.