Skip to content

Fix session gc#351

Open
timwsuqld wants to merge 3 commits intopantheon-systems:mainfrom
suaustralia:fixSessionGC
Open

Fix session gc#351
timwsuqld wants to merge 3 commits intopantheon-systems:mainfrom
suaustralia:fixSessionGC

Conversation

@timwsuqld
Copy link
Copy Markdown

Fix #288

For some reason, PHP built in GC doesn't run in some environments (even with correctly configured GC params). This change allows a scheduled task to cleanup old sessions, as well as a WP-CLI command.

The test were fixed for deleting sessions by ensuring we set a datetime on initial session creation, and by not trying to use ini_set to change options.

Gemini CLI was used to do some initial coding, fixing the bugs was done by hand.

@timwsuqld timwsuqld requested a review from a team as a code owner March 29, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleting old/expired sessions through automated task?

1 participant