use cache even if SQL query result was empty
This commit is contained in:
parent
cccbffc42f
commit
b7cfd5d0e4
2
mod.php
2
mod.php
|
@ -320,13 +320,13 @@
|
||||||
sprintf($config['file_page'], $post['thread']) . '#' . $match[1]
|
sprintf($config['file_page'], $post['thread']) . '#' . $match[1]
|
||||||
: sprintf($config['file_page'], $match[1])) .
|
: sprintf($config['file_page'], $match[1])) .
|
||||||
'">$0</a>', $log['text']);
|
'">$0</a>', $log['text']);
|
||||||
|
}
|
||||||
|
|
||||||
if($config['cache']['enabled'])
|
if($config['cache']['enabled'])
|
||||||
cache::set($log_id, $log['text']);
|
cache::set($log_id, $log['text']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$body .= '<tr>' .
|
$body .= '<tr>' .
|
||||||
'<td class="minimal">' .
|
'<td class="minimal">' .
|
||||||
|
|
Loading…
Reference in New Issue