diff options
author | rub <rub@piwigo.org> | 2007-04-07 21:49:38 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-04-07 21:49:38 +0000 |
commit | a5f440fb5c7eb760eb77750131438e8384ad541e (patch) | |
tree | 45a206d666cf024b97cc10f87e762c34a188a9d1 /admin.php | |
parent | f814e885f391e328eceb80f62c76a7cd84980aa7 (diff) |
Update #_user_cache.need_update only for pages witch change permission
git-svn-id: http://piwigo.org/svn/trunk@1945 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -159,10 +159,15 @@ include(PHPWG_ROOT_PATH.'include/page_tail.php'); // +-----------------------------------------------------------------------+ // | order permission refreshment | // +-----------------------------------------------------------------------+ - -$query = ' +// Only for pages witch change permissions +if (in_array($page['page'], array('cat_options', 'cat_perm', + 'group_perm', 'site_update', 'user_list', 'user_perm'))) +{ + $query = ' UPDATE '.USER_CACHE_TABLE.' SET need_update = \'true\' ;'; -pwg_query($query); + pwg_query($query); +} + ?> |