Skip to content

Commit

Permalink
Revert memory optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
mschering committed Nov 4, 2024
1 parent f79891f commit f03c445
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions www/go/core/model/PushDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ public function start(int $ping = 10): void
// because there are always many sse requests simultaneously we must keep memory as low as possible.
go()->getCache()->disableMemory();
Table::destroyInstances();
Settings::flushCache();
Entity::clearCache();
gc_collect_cycles();

go()->debug("SSE Memory usage: " . memory_get_usage());
Expand Down
2 changes: 0 additions & 2 deletions www/modules/z-push/backend/go/go.php
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,6 @@ public function ChangesSink($timeout = 30) {
ZLog::Write(LOGLEVEL_DEBUG, "Clearing cache memory");
\go\core\db\Table::destroyInstances();
go()->getCache()->disableMemory();
Settings::flushCache();
Entity::clearCache();
gc_collect_cycles();

ZLog::Write(LOGLEVEL_DEBUG, "Memory: " . memory_get_usage());
Expand Down

0 comments on commit f03c445

Please sign in to comment.