Changeset 1979
- Timestamp:
- Apr 26, 2007, 4:01:36 AM (17 years ago)
- Location:
- branches/branch-1_7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_7/admin.php
r1953 r1979 155 155 156 156 $template->parse('admin'); 157 include(PHPWG_ROOT_PATH.'include/page_tail.php');158 157 159 158 // +-----------------------------------------------------------------------+ … … 180 179 ) 181 180 { 182 $query = ' 183 UPDATE '.USER_CACHE_TABLE.' 184 SET need_update = \'true\' 185 ;'; 186 pwg_query($query); 181 invalidate_user_cache(); 187 182 } 188 183 184 include(PHPWG_ROOT_PATH.'include/page_tail.php'); 189 185 ?> -
branches/branch-1_7/admin/include/functions.php
r1932 r1979 2014 2014 } 2015 2015 2016 /** 2017 * Invalidates cahed data (permissions and category counts) for all users. 2018 */ 2019 function invalidate_user_cache() 2020 { 2021 $query = ' 2022 UPDATE '.USER_CACHE_TABLE.' 2023 SET need_update = \'true\' 2024 ;'; 2025 pwg_query($query); 2026 trigger_action('invalidate_user_cache'); 2027 } 2016 2028 ?>
Note: See TracChangeset
for help on using the changeset viewer.