{* <?php die('duotaopu');?> *}
{include file="common/header.php"}
<body class="body-main">


<ul id="admin_sub_title">
	<li class="sub"><a href="javascript:void(0)" onClick="selectTab('config0',this)">缓存设置</a></li>
	<li class="unsub"><a href="?m=delcache">清除缓存</a></li>
</ul>
<div id="admin_right_b">
<script>
$(function() {
	$("#dosave").click(function(){
		showDialog();
		$.ajax({
			type:"post",
			url:"?m=cache&a=update&_t="+Math.random()*10,
			data:$("form").serialize(),
			dataType:'json',
			timeout:28000,
			global:false,
			success:function(data){
				if(data.status==1){
					showAlert('success','恭喜你，修改成功');
				}else{
					showAlert('error',data.info);
				}
			}
		});
	 return false;
	});
});
</script>
<form method="post">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" id="config0">

	<tr class="tdbg">
      <td align="right">蜘蛛访问记录开关：</td>
      <td><input type="radio" name="con[web_robot_onnotes]" value="1"{if $web_robot_onnotes} checked{/if}>开启 <input type="radio" name="con[web_robot_onnotes]" value="0"{if !$web_robot_onnotes} checked{/if}>关闭</td>
    </tr>

	<tr class="tdbg">
      <td align="right">缓存开关：</td>
      <td><input type="radio" name="con[web_caching]" value="1"{if $web_caching} checked{/if}>开启 <input type="radio" name="con[web_caching]" value="0"{if !$web_caching} checked{/if}>关闭</td>
    </tr>

	<tr class="tdbg">
      <td width="150" align="right">首页缓存生命期(小时)：</td>
      <td class="tdbg"><input name="con[cache_lifetime_index]" type="text" class="input" value="{$cache_lifetime_index}" size="20"> <span>首页缓存更新时间，建议值<font color=red>24小时内</font></span></td>
    </tr>
	
	<tr class="tdbg">
      <td width="150" align="right">分类页缓存生命期(小时)：</td>
      <td class="tdbg"><input name="con[cache_lifetime_channel]" type="text" class="input" value="{$cache_lifetime_channel}" size="20"> <span>分类页缓存更新时间，建议值<font color=red>24小时内</font></span></td>
    </tr>
	
	<tr class="tdbg">
      <td width="150" align="right">内容页缓存生命期(小时)：</td>
      <td class="tdbg"><input name="con[cache_lifetime_view]" type="text" class="input" value="{$cache_lifetime_view}" size="20"> <span>内容页缓存更新时间，建议值<font color=red>72小时内</font></span></td>
    </tr>

	</table>

	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr class="tdbg">
	  <td width="130" align="center" class="tdbg">&nbsp;</td>
      <td><div class="aui_buttons"  style="text-align:left;"><button type="submit" id="dosave" class="aui_state_highlight">保存设置</button> <button type="reset" class="aui_state_highlight">重置</button></div></td>
    </tr>
	</table>
	</form>
<div class="runtime"></div>  
</div>
</body>
</html>