[wp-trac] [WordPress Trac] #19879: Better caching for get_dirsize
WordPress Trac
noreply at wordpress.org
Mon Oct 19 21:50:14 UTC 2020
#19879: Better caching for get_dirsize
-------------------------------------------------+-------------------------
Reporter: batmoo | Owner: helen
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.6
Component: Filesystem API | Version: 3.3.1
Severity: normal | Resolution: fixed
Keywords: has-patch needs-dev-note has-unit- | Focuses: multisite,
tests needs-testing dev-feedback | performance
-------------------------------------------------+-------------------------
Changes (by helen):
* owner: (none) => helen
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"49212" 49212]:
{{{
#!CommitTicketReference repository="" revision="49212"
Multisite: More specific caching for `get_dirsize`.
Instead of one cache entry for all upload folders for a site on multisite,
this now caches for each folder and invalidates that cache based on
context. In multisite, this should speed up `get_dirsize` calls since
older directories that are much less likely to change will no longer have
the size recalculated.
Props janthiel, A5hleyRich, batmoo.
Fixes #19879.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19879#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list