From: Cyperghost Date: Mon, 25 Mar 2024 10:07:00 +0000 (+0100) Subject: Use runtime cache for article content X-Git-Tag: 6.1.0_Alpha_1~142^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a415fd1b3799aa63a4cb457407ba1cfdaf58f067;p=GitHub%2FWoltLab%2FWCF.git Use runtime cache for article content --- diff --git a/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php index 834e6caea5..e900765a4c 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php @@ -75,7 +75,7 @@ class ArticleCommentManager extends AbstractCommentManager implements IViewableL #[\Override] public function canModerateObject(int $objectTypeID, int $objectID, UserProfile $user): bool { - $articleContent = new ArticleContent($objectID); + $articleContent = ViewableArticleContentRuntimeCache::getInstance()->getObject($objectID); if (!$articleContent->articleContentID) { return false; }