Skip to content

Commit

Permalink
ENH Only query primary DB
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 27, 2024
1 parent 091a331 commit 4e31557
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Models/LoginSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ class LoginSession extends DataObject

private static bool $anonymize_ip = false;

/**
* Ensure there is no risk of reading from an unsynced database replica so
* that the login session data is always up to date.
*/
private static bool $must_use_primary_db = true;

/**
* The length of time between two updates to the LastAccessed field
*
Expand Down

0 comments on commit 4e31557

Please sign in to comment.