plugins/admin/UserRanks.php
changeset 633 4f81e21b5590
parent 628 ab6f55abb17e
child 685 17ebe24cdf85
--- a/plugins/admin/UserRanks.php	Sat Jul 12 05:10:39 2008 -0400
+++ b/plugins/admin/UserRanks.php	Sat Jul 12 05:11:33 2008 -0400
@@ -120,6 +120,9 @@
         $rank_style = $db->escape(@$request['rank_style']);
         $q = $db->sql_query('UPDATE ' . table_prefix . "ranks SET rank_title = '$rank_title', rank_style = '$rank_style' WHERE rank_id = $rank_id;");
         
+        // regenerate the ranks cache
+        generate_cache_userranks();
+        
         echo enano_json_encode(array(
             'mode' => 'success'
           ));
@@ -153,6 +156,9 @@
           return true;
         }
         
+        // regenerate the ranks cache
+        generate_cache_userranks();
+        
         echo enano_json_encode(array(
             'mode' => 'success',
             'rank_id' => $rank_id
@@ -193,6 +199,9 @@
         if ( !$q )
           $db->_die();
         
+        // regenerate the ranks cache
+        generate_cache_userranks();
+        
         echo enano_json_encode(array(
             'mode' => 'success'
           ));