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 24, 2024
1 parent e0a33e1 commit 0836239
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Models/LoginSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ class LoginSession extends DataObject

private static bool $anonymize_ip = false;

/**
* Only use the primary db to ensure there is no risk of reading from an unsynced replica db
*/
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 0836239

Please sign in to comment.