1. 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

Discussion in 'XenForo Questions and Support' started by LGM Discord, Jun 6, 2012.

  1. LGM Discord

    LGM Discord Member

    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?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
     
  3. LGM Discord

    LGM Discord Member

    Thank you very much.
     

Share This Page