Skip to content

Commit bab655b

Browse files
CopilotJJJ
andcommitted
Replace MINUTE_IN_SECONDS constant with 900
Co-authored-by: JJJ <[email protected]>
1 parent aa2dd3c commit bab655b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ public function create_lock() {
357357

358358
// Create the lock transient
359359
if ( $this->is_global() ) {
360-
$lock_set = set_site_transient( $lock_key, time(), 15 * MINUTE_IN_SECONDS );
360+
$lock_set = set_site_transient( $lock_key, time(), 900 );
361361
} else {
362-
$lock_set = set_transient( $lock_key, time(), 15 * MINUTE_IN_SECONDS );
362+
$lock_set = set_transient( $lock_key, time(), 900 );
363363
}
364364

365365
// Return whether the lock was successfully created

0 commit comments

Comments
 (0)