Bugfix of bugfix ClearSqlCache TIMESTAMPDIFF
This commit is contained in:
@@ -7415,7 +7415,7 @@ function ClearSqlCache($shortcode, $seconds = 0)
|
|||||||
if($seconds > 0) {
|
if($seconds > 0) {
|
||||||
$this->app->DB->Delete(
|
$this->app->DB->Delete(
|
||||||
sprintf(
|
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
|
$this->app->DB->real_escape_string($shortcode), $seconds
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user