Site icon Hip-Hop Website Design and Development

Cannot get the frontend cache to be deleted manually

After couple of nights of looking out and attempting numerous approaches, I have never discovered any answer.

Subject

Cache not clearing after saving manually put up meta.

I am making a instrument for admins, which can replace customized put up sort’s meta knowledge (ACF-fields) with command update_field()

Adjustments are being saved to the database and adjustments might be seen when enhancing the put up. The adjustments might be seen when in backend.

On the frontend new saved meta knowledge cannot be seen, however there’s previous values that does not exist within the database anymore. So the values aren’t fetched from the database, however from cache. If I replace the put up within the edit put up view, then the brand new values will present on frontend. However instructing customers to go enhancing put up and reserve it after utilizing this talked about instrument, will not be good apply.

So what’s the proper strategy to flush WordPress’s cache?

What have been tried

That is what I’ve already tried:
After update_field() I’ve run:

wp_cache_delete()

clean_post_cache()

update_post_caches()

wp_cache_flush()

$wpdb->flush()

These features did not empty the cache. Am I maybe utilizing them improper?

I am doing the creating in Native by Flywheel, which is utilizing Nginx. I suspected about Nginx and switched to Apache, however that did not assist. So Nginx is not inflicting the difficulty.

Edit:

Forgot to say earlier, that no Cache plugins is getting used.