From 8b6eecea25c7ffbc9c55b6905f07588881200a90 Mon Sep 17 00:00:00 2001 From: Dag Date: Mon, 31 Jul 2023 20:43:11 +0200 Subject: [PATCH] docs: add note about expensive operation (#3579) --- bridges/VkBridge.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index 967734ef..8c18f26a 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -84,7 +84,10 @@ class VkBridge extends BridgeAbstract foreach ($html->find('div.replies') as $comment_block) { $comment_block->outertext = ''; } - $html->load($html->save()); + + // expensive operation + $save = $html->save(); + $html->load($save); $pinned_post_item = null; $last_post_id = 0;