From 801f8c4057184138cf52141a993fe8778b163dfe Mon Sep 17 00:00:00 2001 From: METO Date: Fri, 21 Jul 2017 12:07:57 +0800 Subject: [PATCH] =?UTF-8?q?[1.2.4]=20=E4=BF=AE=E5=A4=8D=20PHP=20<=3D5.3=20?= =?UTF-8?q?=E4=B8=8B=E5=87=BA=E7=8E=B0=E7=9A=84=20500=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Action.php | 2 +- Plugin.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Action.php b/Action.php index 5554690..163d80c 100644 --- a/Action.php +++ b/Action.php @@ -213,7 +213,7 @@ class Meting_Action extends Typecho_Widget implements Widget_Interface_Do { return $db->query($insert); } - private function cacheRead($k,$t=60*60){ + private function cacheRead($k,$t=3600){ $db=Typecho_Db::get(); $query=$db->select('value','last')->from('table.metingv1')->where('id=?',md5($k)); $result=$db->fetchRow($query); diff --git a/Plugin.php b/Plugin.php index e4262b0..81d3777 100644 --- a/Plugin.php +++ b/Plugin.php @@ -6,13 +6,13 @@ if(!defined('__TYPECHO_ROOT_DIR__'))exit; * * @package Meting * @author METO - * @version 1.2.3 + * @version 1.2.4 * @dependence 14.10.10-* * @link https://github.com/metowolf/Meting-Typecho-Plugin * */ -define('METING_VERSION','1.2.3'); +define('METING_VERSION','1.2.4'); class Meting_Plugin extends Typecho_Widget implements Typecho_Plugin_Interface {