docs: add note about expensive operation (#3579)

This commit is contained in:
Dag 2023-07-31 20:43:11 +02:00 committed by GitHub
parent f8fd05f08f
commit 8b6eecea25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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;