mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-02-19 01:07:49 -05:00
The virtual session code creates an in-memory session, and only upon release does it copy it to the actual session store. This makes a lot of sense to avoid operations on session stores with potentially high cost for I/O.
This commit removes a weird hack used in this code: virtual sessions were always created with an _old_uid=0 key/value pair, which was taken into account when checking if the session needed to be persisted.
As I could not find _any_ use of _old_uid in the code base, this looks like something worth removing.
The first ever mention of _old_uid is
|
||
|---|---|---|
| .. | ||
| db.go | ||
| redis.go | ||
| store.go | ||
| virtual.go | ||