Add virtual acp sessions to clean up cronjob
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 14 Apr 2016 18:08:46 +0000 (20:08 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 14 Apr 2016 18:09:06 +0000 (20:09 +0200)
wcfsetup/install/files/lib/system/cronjob/SessionCleanUpCronjob.class.php

index 6ec13828078b70c8087a978694ef9b157951cdb7..a4666d1c1c74e1514659454253733c512aa96ee0 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\cronjob;
+use wcf\data\acp\session\virtual\ACPSessionVirtualEditor;
 use wcf\data\acp\session\ACPSessionEditor;
 use wcf\data\cronjob\Cronjob;
 use wcf\data\session\virtual\SessionVirtualEditor;
@@ -23,6 +24,7 @@ class SessionCleanUpCronjob extends AbstractCronjob {
                parent::execute($cronjob);
                
                ACPSessionEditor::deleteExpiredSessions(TIME_NOW - SESSION_TIMEOUT);
+               ACPSessionVirtualEditor::deleteExpiredSessions(TIME_NOW - SESSION_TIMEOUT);
                SessionEditor::deleteExpiredSessions(TIME_NOW - SESSION_TIMEOUT);
                SessionVirtualEditor::deleteExpiredSessions(TIME_NOW - SESSION_TIMEOUT);
        }