How to clear the cache after making updates in the code

Continuing the discussion from Controlling the cache?:

I’ve edited a meta tag, but the kirby cache doesn’t update. How can I force it to update the cache one time. I thought clearing the site/cache folder would work, but the old cache still shows up? Even if I turn it off and back on in config.php, the old meta tag still shows up.

Emptying the site/cache folder should actually work. You can also clear the cache programmatically using the cache::flush() method as @distantnative mentions in the linked post.

Thanks. That was it. Had an unrelated conflict in my www vs non-www config files that was throwing me off.