I need to disable Page Cache so it does not keep old data on the page.
When I dIsable it from admin panel it works, but then it gets backs to enabled by no reason.
Is there a way I can keep it disabled like the image below:
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
The admin setting you are adding should stay disabled if you set it like that in a vanilla Magento installation. I am assuming you have some customizations in place, maybe some environment specifics (setups, builds, etc), so I would check those first to isolate which process re-enables FPC.
Whether you disable if from the GUI or programmatically, if there's something somewhere which says FPC should be enabled, it would definitely overwrite your programmatic FPC disabling.