plugins/admin/CacheManager.php
changeset 953 323c4cd1aa37
parent 801 eb8b23f11744
child 1081 745200a9cc2a
equal deleted inserted replaced
952:d52dfa1f08da 953:323c4cd1aa37
   139               unlink($fullpath);
   139               unlink($fullpath);
   140           }
   140           }
   141           $success = true;
   141           $success = true;
   142         }
   142         }
   143         break;
   143         break;
       
   144       case 'wikieditnotice':
       
   145         $cache->purge('wiki_edit_notice');
       
   146         if ( $do_refresh )
       
   147           $template->get_wiki_edit_notice();
       
   148         
       
   149         $success = true;
       
   150         break;
   144       case 'all':
   151       case 'all':
   145         $success = purge_all_caches();
   152         $success = purge_all_caches();
   146         if ( $do_refresh )
   153         if ( $do_refresh )
   147         {
   154         {
   148           //
   155           //
   161           
   168           
   162           // plugins
   169           // plugins
   163           $success = $plugins->generate_plugins_cache();
   170           $success = $plugins->generate_plugins_cache();
   164           if ( !$success )
   171           if ( !$success )
   165             break;
   172             break;
       
   173           
       
   174           // wiki edit notice
       
   175           $template->get_wiki_edit_notice();
   166           
   176           
   167           // languages
   177           // languages
   168           $q = $db->sql_query('SELECT lang_id FROM ' . table_prefix . 'language;');
   178           $q = $db->sql_query('SELECT lang_id FROM ' . table_prefix . 'language;');
   169           if ( !$q )
   179           if ( !$q )
   170             $db->_die();
   180             $db->_die();
   263         </th>
   273         </th>
   264       </tr>
   274       </tr>
   265       
   275       
   266       <?php
   276       <?php
   267       $class = 'row2';
   277       $class = 'row2';
   268       $cache_list = array('page', 'ranks', 'sidebar', 'plugins', 'template', 'aes', 'lang', 'js', 'thumbs');
   278       $cache_list = array('page', 'ranks', 'sidebar', 'plugins', 'template', 'aes', 'lang', 'js', 'thumbs', 'wikieditnotice');
   269       $code = $plugins->setHook('acp_cache_manager_list_caches');
   279       $code = $plugins->setHook('acp_cache_manager_list_caches');
   270       foreach ( $code as $cmd )
   280       foreach ( $code as $cmd )
   271       {
   281       {
   272         eval($cmd);
   282         eval($cmd);
   273       }
   283       }