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 16, 2024
1 parent e0a33e1 commit 7b12d7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"require": {
"php": "^8.1",
"silverstripe/admin": "^2",
"silverstripe/framework": "^5.3",
"silverstripe/framework": "^5.4",
"symfony/http-foundation": "^6.1",
"ua-parser/uap-php": "^3.9.14"
},
Expand Down
2 changes: 2 additions & 0 deletions src/Models/LoginSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class LoginSession extends DataObject

private static bool $anonymize_ip = false;

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 7b12d7a

Please sign in to comment.