RSS Feed/News Rebuilding one style loads properties from unrelated styles

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
34,617
Points
823

Reputation:

StyleProperty\RebuildService::rebuildPropertyStyleCacheForStyle() fetches all style properties before determining which styles it needs to rebuild

PHP:

Code:
\XF::runOnce('stylePropertyCacheRebuild' . $this->style_id, function ()
{
    $this->getPropertyRebuildService()->rebuildPropertyStyleCacheForStyle($this->style_id);
});
The rebuild receives $styleId but fetches and groups every property from every style before validating the target. The query has no style_id filter.

PHP:

$properties...

Read more

Continue reading...
 
Status
Not open for further replies.
Top