From 982be7f369ee53ebd63ae54034c806ac26a4d0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Tue, 15 Oct 2024 14:59:50 +0200 Subject: [PATCH] Automatic release v4.0.x-20241015 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 154e31d..122f962 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,15 @@ rake -T rake db:mongoid:create_indexes ``` +### Purge old session + +In mongo db sheeh you can purge the old session using (TODO we should do a rake task) + +``` +db.getCollection("sessions").deleteMany({"updated_at": {$lt:ISODate("2023-12-06")}}) +``` + + # TODO - improve configuration of allowed lang in front and limitation of indexing with mongodb