[wp-trac] [WordPress Trac] #19879: Better caching for get_dirsize
WordPress Trac
noreply at wordpress.org
Wed Oct 14 16:32:27 UTC 2020
#19879: Better caching for get_dirsize
-------------------------------------------------+-------------------------
Reporter: batmoo | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.6
Component: Filesystem API | Version: 3.3.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs-dev- | Focuses: multisite,
note has-unit-tests | performance
-------------------------------------------------+-------------------------
Comment (by janthiel):
@ianmjones Thanks for getting back to this so quickly :-)
From what you describe, this change will only affect you in all the
positive ways it should. The call to {{{get_dirsize}}} will not change in
any way. But the caching under the hood of it will be much more scalable
for growing upload folders. So as long as you don't handle the
{{{dirsize_cache}}} by yourself, everything will continue without any
change required on your end.
Performancewise: On "new" or small sites you will most probably not notice
anything at all. But for larger ones or those running on NFS you should
notice the increased performance as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19879#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list