Disable caching in backend | WordPress.org

[ad_1]

Hi,

I’m working on a plugin and this website uses SG Optimizer (on my SG cloud server). I noticed that when I save data to the database or update data in the database (both in the backend), some changes are not visible in the WP backend.

When I disable Siteground Optimizer, it works okay. Also when I click on Empty SG cache in the toolbar, the changes become visible. However, I don’t want the end user to have to do this every time.

So the Optimizer is causing this issue. However, I don’t understand why, because I thought logged in users are not cached, as well as the backend.

Can I disable caching in the backend or use a piece of PHP code to force the cache to empty after some changes are saved?

Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer