Skip to content

Commit

Permalink
修复redis缓存无法清除bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetao Yang authored and Zetao Yang committed Nov 4, 2017
1 parent 8228ba8 commit 0e8e889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/phpspider.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class phpspider
* 版本号
* @var string
*/
const VERSION = '2.1.2';
const VERSION = '2.1.3';

/**
* 爬虫爬取每个网页的时间间隔,0表示不延时, 单位: 毫秒
Expand Down Expand Up @@ -2008,7 +2008,7 @@ public function check_cache()
{
foreach ($keys as $key)
{
$key = str_replace($GLOBALS['config']['redis']['prefix'].":", "", $key);
$key = str_replace(self::$queue_config['prefix'].":", "", $key);
queue::del($key);
}
}
Expand Down

0 comments on commit 0e8e889

Please sign in to comment.