diff options
Diffstat (limited to 'admin')
-rw-r--r-- | admin/include/functions.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 6e97e3908..66deb5777 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -2013,4 +2013,16 @@ function pwg_URL() return $urls; } +/** + * Invalidates cahed data (permissions and category counts) for all users. + */ +function invalidate_user_cache() +{ + $query = ' +UPDATE '.USER_CACHE_TABLE.' + SET need_update = \'true\' +;'; + pwg_query($query); + trigger_action('invalidate_user_cache'); +} ?> |