mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
|
@ -772,6 +772,10 @@ class FileController extends File
|
|||
{
|
||||
$_SESSION['upload_info'] = array();
|
||||
}
|
||||
if(count($_SESSION['upload_info']) > 200)
|
||||
{
|
||||
$_SESSION['upload_info'] = array_slice($_SESSION['upload_info'], 100, null, true);
|
||||
}
|
||||
if(!isset($_SESSION['upload_info'][$editor_sequence]))
|
||||
{
|
||||
$_SESSION['upload_info'][$editor_sequence] = new stdClass();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue