Skip to content

Commit

Permalink
loosen reset cache key pattern, bcosca/fatfree#1041
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Dec 31, 2017
1 parent 457c955 commit 6860f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base.php
Original file line number Diff line number Diff line change
Expand Up @@ -2531,7 +2531,7 @@ function clear($key) {
function reset($suffix=NULL) {
if (!$this->dsn)
return TRUE;
$regex='/'.preg_quote($this->prefix.'.','/').'.+'.
$regex='/'.preg_quote($this->prefix.'.','/').'.*'.
preg_quote($suffix,'/').'/';
$parts=explode('=',$this->dsn,2);
switch ($parts[0]) {
Expand Down

0 comments on commit 6860f22

Please sign in to comment.