mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix excessive session data after accessing and voting on many documents and comments
This commit is contained in:
parent
8f20339549
commit
6a93e0c12d
5 changed files with 42 additions and 0 deletions
|
|
@ -241,6 +241,10 @@ class CommentItem extends BaseObject
|
|||
{
|
||||
$_SESSION['accessible'][$this->comment_srl] = $this->get('last_update');
|
||||
}
|
||||
if(is_array($_SESSION['accessible']) && count($_SESSION['accessible']) > 200)
|
||||
{
|
||||
$_SESSION['accessible'] = array_slice($_SESSION['accessible'], 100, null, true);
|
||||
}
|
||||
}
|
||||
|
||||
function isEditable()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue