Skip to content

Commit

Permalink
Fix memory usage on integrity check
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Nov 15, 2023
1 parent 819c387 commit 86f27fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function onIntegrityCheck($event)
$integrityController = $event->sender;
$integrityController->showTestHeadline("CFile Module (" . File::find()->count() . " entries)");

foreach (File::find()->all() as $file) {
foreach (File::find()->each() as $file) {
/* @var $file \humhub\modules\cfiles\models\File */

// If parent_folder_id is 0 or null its an old root child which is not merged yet.
Expand All @@ -60,7 +60,7 @@ public static function onIntegrityCheck($event)

$integrityController->showTestHeadline("CFile Module (" . File::find()->count() . " entries)");

foreach (Folder::find()->all() as $folder) {
foreach (Folder::find()->each() as $folder) {
/* @var $file \humhub\modules\cfiles\models\File */

// If parent_folder_id is 0 or null its either an old root child which is not merged yet or an root directory.
Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
-----------------------
- Enh #194: Tests for `next` version
- Fix #197: Fix visibility of the method `Controller::getAccessRules()`
- Fix #198: Fix memory usage on integrity check

0.16.2 - September 4, 2023
---------------------------
Expand Down

0 comments on commit 86f27fa

Please sign in to comment.