XF 1.1 User Cache

I have an external script that needs to modify a user's usergroup. This is no problem doing so directly in the database; however, the issue then becomes one with the cache not changing as well.

My question is, would it be possible to modify/clear the user's cache and, if so, where is the cache located by default. If that's not recommended, perhaps a cron could rebuild user cache each night?

Any other ideas?

Jake Bunce

XenForo moderator
Staff member
Refer to this code:


A cron or custom script can be called on to execute this code. This code is designed to process all users in batches, but it can be modified for a single user if needed.