Bugfix of bugfix ClearSqlCache TIMESTAMPDIFF

This commit is contained in:
OpenXE 2022-12-02 12:13:49 +00:00
parent 8c1eb6c3cc
commit d41745ceda

View File

@ -7415,7 +7415,7 @@ function ClearSqlCache($shortcode, $seconds = 0)
if($seconds > 0) {
$this->app->DB->Delete(
sprintf(
"DELETE FROM sqlcache WHERE shortcode = 'artikel' AND TIMESTAMPDIFF(SECOND,zeitstempel, NOW()) > %d",
"DELETE FROM sqlcache WHERE shortcode = '%s' AND TIMESTAMPDIFF(SECOND,zeitstempel, NOW()) > %d",
$this->app->DB->real_escape_string($shortcode), $seconds
)
);