Changeset 2891 for branches/2.0/admin
- Timestamp:
- Nov 19, 2008, 9:06:20 PM (15 years ago)
- Location:
- branches/2.0/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/admin/include/functions.php
r2883 r2891 1763 1763 * Invalidates cahed data (permissions and category counts) for all users. 1764 1764 */ 1765 function invalidate_user_cache() 1766 { 1767 $query = ' 1765 function invalidate_user_cache($full = true) 1766 { 1767 if ($full) 1768 { 1769 $query = ' 1770 TRUNCATE TABLE '.USER_CACHE_CATEGORIES_TABLE.';'; 1771 pwg_query($query); 1772 $query = ' 1773 TRUNCATE TABLE '.USER_CACHE_TABLE.';'; 1774 pwg_query($query); 1775 } 1776 else 1777 { 1778 $query = ' 1768 1779 UPDATE '.USER_CACHE_TABLE.' 1769 SET need_update = \'true\''; 1770 pwg_query($query); 1780 SET need_update = \'true\';'; 1781 pwg_query($query); 1782 } 1771 1783 trigger_action('invalidate_user_cache'); 1772 1784 } -
branches/2.0/admin/maintenance.php
r2530 r2891 47 47 update_category('all'); 48 48 update_global_rank(); 49 invalidate_user_cache( );49 invalidate_user_cache(true); 50 50 break; 51 51 }
Note: See TracChangeset
for help on using the changeset viewer.