Some apps have a setting to clear data and I swear I’ve seen cached data in that before but I could be mistaken

I know they do, but the effectiveness of these "clear data" settings varies wildly and it's mildly infuriating. For instance, in my experience Telegram's works pretty well, X's not at all.