[wp-trac] [WordPress Trac] #6531: Recursively search for files in theme and plugin editors
WordPress Trac
noreply at wordpress.org
Wed Sep 13 20:18:57 UTC 2017
#6531: Recursively search for files in theme and plugin editors
--------------------------------------+-----------------------------
Reporter: torbens | Owner: chsxf
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.9
Component: Themes | Version: 2.5
Severity: minor | Resolution:
Keywords: theme-editor needs-patch | Focuses: administration
--------------------------------------+-----------------------------
Comment (by schlessera):
I'm interested in tackling this for 4.9.
I'd like to investigate using proper PHP iterator objects, and provide
some custom magic so that they can transparently cache into
transients/object cache.
The main benefit is that you don't pull in all files and folders into
memory just to pass them around, but rather you prepare an iterator object
and pass that on. In some cases, the actual iteration will never happen as
it is not needed, and in some cases you'll only end up with a partial
iteration, which saves IO and memory as well.
Once the iterators are built, they can easily be adapted to replace the
above functions.
Is there anything that would speak against such an approach?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/6531#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list