English > General Questions

Performance

<< < (2/3) > >>

Finarfin:
Just for the record, comment this line on 0.9.9.9 break the code. Probably cause of the merge. Now is something like

$subdirs 1 = bla
//$subdirs 2 = bla

//$subdirs = arraymerge (sb1, sb2)
$subdirs = $subdirs1

Harald Leithner:
you are right, replace


--- Code: ---$subdirs2 = JFolder::files(JPATH_ADMINISTRATOR.'/components','jdiction.xml', true, true);
--- End code ---

with


--- Code: ---$subdirs2 = JFolder::files(JPATH_ADMINISTRATOR.'/components','jdiction.xml', 1, true);
--- End code ---

or


--- Code: ---$subdirs2 = JFolder::files(JPATH_ADMINISTRATOR.'/components','jdiction.xml', 2, true);
--- End code ---

I'm not sure if we need one or two levels.

Finarfin:
well, you are the designer, you´ll have to say where the others need to put the file to you to find it :D but it would be more efficient at level 1 of course

Harald Leithner:
I know that it should be in the first level of the component.
BUt i'm not sure how the function is working. If 1 level is like false or i#it is one level deep.

Thomas Chan:
This change brought my load time from 10s to 1.5s!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version