[RSS Feed/News] Importing styles is very inefficient

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom