mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-04-01 11:00:23 +02:00
bugfix ClearSqlCache TIMESTAMPDIFF
This commit is contained in:
parent
c443496462
commit
d6dcc9f4c6
@ -7403,7 +7403,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 DATE_DIFF(zeitstempel, INTERVAL %d SECOND) < NOW()',
|
"DELETE FROM sqlcache WHERE TIMESTAMPDIFF(SECOND,zeitstempel, NOW()) > %d",
|
||||||
$seconds
|
$seconds
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -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 = '%s' AND DATE_DIFF(zeitstempel, INTERVAL %d SECOND) < NOW()",
|
"DELETE FROM sqlcache WHERE shortcode = 'artikel' AND TIMESTAMPDIFF(SECOND,zeitstempel, NOW()) > %d",
|
||||||
$this->app->DB->real_escape_string($shortcode), $seconds
|
$this->app->DB->real_escape_string($shortcode), $seconds
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user