<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<h2 class="h1">缓存管理</h2>
<div class="admin_table mb10">
  <table width="100%" cellspacing="0" cellpadding="0">
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='cache'>
      <tr class="tr1 vt">
        <td class="td1">更新站点缓存</td>
        <td class="td2"><span class="bt2"><span>
          <button type="submit">更 新</button>
          </span></span></td>
        <td class="td2"><div class="help_a">数据转换后或前台不能正常访问时，可以使用此功能更新所有缓存</div></td>
      </tr>
    </form>
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='bbsinfo'>
      <tr class="tr1 vt">
        <td class="td1">更新会员总数</td>
        <td class="td2"><span class="bt2"><span>
          <button type="submit">更 新</button>
          </span></span></td>
        <td class="td2"><div class="help_a">可修复会员总数统计错误问题</div></td>
      </tr>
    </form>
    <form action="$basename&" method="post">
      <input type="hidden" name="action" value="online">
      <tr class="tr1 vt">
        <td class="td1">初始化在线列表</td>
        <td class="td2"><span class="bt2"><span>
          <button type="submit">更 新</button>
          </span></span></td>
        <td class="td2"><div class="help_a">前台在线用户列表发生错乱时，可使用此功能修复</div></td>
      </tr>
    </form>
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='topped'>
      <tr class="tr1 vt">
        <td class="td1">更新置顶帖统计</td>
        <td class="td2"><span class="bt2"><span>
          <button type="submit">更 新</button>
          </span></span></td>
        <td class="td2"><div class="help_a">置顶帖显示不正常，可使用此功能修复</div></td>
      </tr>
    </form>
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='usergroup'>
      <tr class="tr1 vt">
        <td class="td1">更新系统组成员头衔</td>
        <td class="td2"><span class="bt2"><span>
          <button type="submit">更 新</button>
          </span></span></td>
        <td class="td2"><div class="help_a">使用此功能可修复版主头衔错误和系统组头衔错误的问题</div></td>
      </tr>
    </form>
<!--
EOT;
if(!$isMemcachOpen){print <<<EOT
-->
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='flushDatastore'>
      <tr class="tr1 vt">
        <td class="td1">会员信息缓存</td>
        <td class="td2"><span class="bt2"><span>
          <button type="submit">更 新</button>
          </span></span></td>
        <td class="td2"><div class="help_a">更新帖子阅读页会员缓存信息</div></td>
      </tr>
    </form>
<!--
EOT;
}print <<<EOT
-->
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='digest'>
      <tr class="tr1 vt">
        <td class="td1">修复精华帖统计</td>
        <td class="td2"><input type="text" class="input input_wa mr5" name="percount" value=1000>
          <span class="bt2"><span>
          <button type="submit" value="每批更新个数">每批更新个数</button>
          </span></span> </td>
        <td class="td2"><div class="help_a">修复所有会员的精华帖个数统计</div></td>
      </tr>
    </form>
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='forum'>
      <tr class="tr1 vt">
        <td class="td1">更新主题文章数统计</td>
        <td class="td2"><input type="text" class="input input_wa mr5" name="percount" value="100">
          <span class="bt2"><span>
          <button type="submit" value="每批更新个数">每批更新个数</button>
          </span></span> </td>
        <td class="td2"><div class="help_a">更新所有版块的主题数和文章数统计<br/><span class="gray">数据转换后或前台文章数统计不正常时，可使用此功能修复</span></div></td>
      </tr>
    </form>
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='group'>
      <tr class="tr1 vt">
        <td class="td1">更新会员组头衔</td>
        <td class="td2"><input type="text" class="input input_wa mr5" name="percount" value=2000>
          <span class="bt2"><span>
          <button type="submit" value="每批更新个数">每批更新个数</button>
          </span></span> </td>
        <td class="td2"><div class="help_a">根据积分方案更新会员组头衔<br /><span class="gray">每次更改升级点数需求或会员组提升方式后需要使用此功能更新会员组头衔</span></div></td>
      </tr>
    </form>
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='thread'>
      <tr class="tr1 vt">
        <td class="td1">更新主题的回复数统计</td>
        <td class="td2"><input type="text" class="input input_wa mr5" name="percount" value="2000">
          <span class="bt2"><span>
          <button type="submit" value="每批更新个数">每批更新个数</button>
          </span></span> </td>
        <td class="td2"><div class="help_a">更新主题的回复数统计<br /><span class="gray">当浏览帖子页面回复显示不正常时，可以使用此功能修复 (不建议使用)</span></div></td>
      </tr>
    </form>
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='appcount'>
      <tr class="tr1 vt">
        <td class="td1">更新用户APP统计</td>
        <td class="td2"><input type="text" class="input input_wa mr5" name="percount" value="2000">
          <span class="bt2"><span>
          <button type="submit" value="每批更新个数">每批更新个数</button>
          </span></span> </td>
        <td class="td2"><div class="help_a">更新用户的应用(app)统计<br /><span class="gray">但用户的app统计不正确的时候（例如相片数量准确），可以使用此功能修复</span></div></td>
      </tr>
    </form>
    <form action="$basename&" method="post">
      <input type="hidden" name="action" value="updateMemberFriends"/>
      <tr class="tr1 vt">
        <td class="td1">修复用户好友数</td>
        <td class="td2"><input type="text" class="input input_wa mr5" name="percount" value="1000"/>
          <span class="bt2"><span>
          <button type="submit" value="每批更新个数">每批更新个数</button>
          </span></span> </td>
        <td class="td2"><div class="help_a">修复用户好友数<br /><span class="gray">此操作将从新统计用户的好友个数</span></div></td>
      </tr>
    </form>
<!--
EOT;
if($isMemcachOpen){
print <<<EOT
-->
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='refreshMemcache'>
      <tr class="tr1 vt">
        <td class="td1">刷新指定版块的Memcache缓存<br /><span class="gray">实现指定版块Memcache缓存重建</span></td>
        <td class="td2"><select name="fid">
            $forumSelect
          </select>
          <input type="submit" class="btn" value="刷新Memcache缓存"></td>
        <td class="td2"><div class="help_a"></div></td>
      </tr>
    </form>
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='clearMemcache'>
      <tr class="tr1 vt">
        <td class="td1">清除指定版块的Memcache缓存<br /><span class="gray">实现指定版块Memcache清除</span></td>
        <td class="td2"><select name="fid">
            $forumSelect
          </select>
          <input type="submit" class="btn" value="清除Memcache缓存"></td>
        <td class="td2"><div class="help_a"></div></td>
      </tr>
    </form>
    <form action="$basename&" method=post>
      <input type="hidden" name=action value='flushMemcache'>
      <tr class="tr1 vt">
        <td class="td1">清除所有Memcache缓存<br /><span class="gray">注意：此操作将清除Memcache中所有的缓存（如无特殊情况请勿使用）</span></td>
        <td class="td2"><input type="submit" class="btn" value="清除所有Memcache缓存"></td>
        <td class="td2"><div class="help_a"></div></td>
      </tr>
    </form>
<!--
EOT;
}print <<<EOT
-->
  </table>
</div>
<!--
EOT;
include_once PrintEot('adminbottom');
?>
-->
