Changeset 2890 for trunk/admin/include/functions.php
- Timestamp:
- Nov 19, 2008, 9:03:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r2882 r2890 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 }
Note: See TracChangeset
for help on using the changeset viewer.