Basically the title, I’m working on my chat system and was wondering if instead of making a request for a string every time, if I could cache the filtered strings and send that cached string back to the client?
Also, I’d create the cache for the player’s current session, when they leave, the cache for that player will be erased, and a new blank cache would be created when they rejoin.
No, Roblox uses context-sensitive filtering to prevent people from revealing personal information over multiple messages. If you cache filtered results, this filtering will be broken and it will also lose context for things that you have already cached.
The only results you can cache are ones that everyone can see using the most restrictive filtering (i.e. pet names). And even then, you should never cache it in a data store - only on the one server.