Bug Importing styles is very inefficient

There is a bug in this version
K

Kirby

Guest
When importing a style to overwrite an existing style, the style import service calls \XF\Repository\Style::triggerStyleDataRebuild
PHP:

Code:
public function importFromXml(\SimpleXMLElement $document)
{
    $db = $this->db();
    $db->beginTransaction();

    $addOnId = (string)$document['addon_id'];

    $style = $this->getTargetStyle($document);

    $this->importAssets($style, $document->assets, $addOnId);
    $this->importPropertyGroups($style, $document->properties, $addOnId)...

Read more

Continue reading...