Ignore:
Timestamp:
Apr 26, 2007, 3:59:39 AM (17 years ago)
Author:
rvelices
Message:

invalidation of the users cache done in a function and an action is triggered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r1932 r1978  
    20142014}
    20152015
     2016/**
     2017 * Invalidates cahed data (permissions and category counts) for all users.
     2018 */
     2019function invalidate_user_cache()
     2020{
     2021  $query = '
     2022UPDATE '.USER_CACHE_TABLE.'
     2023  SET need_update = \'true\'
     2024;';
     2025  pwg_query($query);
     2026  trigger_action('invalidate_user_cache');
     2027}
    20162028?>
Note: See TracChangeset for help on using the changeset viewer.