Skip to content

Commit e407f92

Browse files
author
Ajay Kelkar
authored
fix: set cache default to false (#2906)
1 parent 57e569e commit e407f92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

driver/config/config_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,9 @@ func TestSession(t *testing.T) {
609609
p.MustSet(ctx, config.ViperKeySessionPersistentCookie, false)
610610
assert.Equal(t, false, p.SessionPersistentCookie(ctx))
611611

612-
assert.Equal(t, true, p.SessionWhoAmICaching(ctx))
613-
p.MustSet(ctx, config.ViperKeySessionWhoAmICaching, false)
614612
assert.Equal(t, false, p.SessionWhoAmICaching(ctx))
613+
p.MustSet(ctx, config.ViperKeySessionWhoAmICaching, true)
614+
assert.Equal(t, true, p.SessionWhoAmICaching(ctx))
615615
}
616616

617617
func TestCookies(t *testing.T) {

embedx/config.schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2482,7 +2482,7 @@
24822482
"type": "boolean",
24832483
"title": "Enable Ory Sessions caching",
24842484
"description": "If enabled allows Ory Sessions to be cached. Only effective in the Ory Network.",
2485-
"default": true
2485+
"default": false
24862486
}
24872487
},
24882488
"additionalProperties": false

0 commit comments

Comments
 (0)