Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bar in session: remove undispatched bars after 60 seconds#234

Closed
matej21 wants to merge 1 commit into
nette:masterfrom
matej21:session_bar_gc
Closed

Bar in session: remove undispatched bars after 60 seconds#234
matej21 wants to merge 1 commit into
nette:masterfrom
matej21:session_bar_gc

Conversation

@matej21

@matej21 matej21 commented Nov 23, 2016

Copy link
Copy Markdown
Contributor

No description provided.

@milo

milo commented Nov 24, 2016

Copy link
Copy Markdown
Member

Not sure it is correct solution, but it probably solve my issue. I can find 2MB - 90MB session files with _tracy|a:3:{s:8:"redirect";N;s:3:"bar"; ..... junk.

@dg

dg commented Dec 3, 2016

Copy link
Copy Markdown
Member

Queue is limited that there could be a maximum of 5 items, so it shouldn't accumulate data…

$queue = array_slice(array_filter((array) $queue), -5, NULL, TRUE);

@milo can you try to explore what is wrong?

@JanTvrdik

JanTvrdik commented Dec 3, 2016

Copy link
Copy Markdown
Contributor

Is it possible that those 5 items could never expire?

@milo

milo commented Dec 4, 2016

Copy link
Copy Markdown
Member

@dg Thanks to pointing this code. It takes some sense to me now, even I cannot reproduce it.

My guess is, I made some huge dump (~20MB) by mistake and I stopped loading in a browser, so item wasn't picked up. Than again and again wasn't picked up. Than I fixed this dump, but data remains in the session, because ordinary traffic is one tracy bar, or two on redirection.

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.

4 participants