• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 User Cache

#1
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
#2
Refer to this code:

library/XenForo/CacheRebuilder/User.php

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.