[wp-trac] [WordPress Trac] #42558: Reduce the number of capability checks performed by the Customizer
WordPress Trac
noreply at wordpress.org
Wed Nov 15 18:17:49 UTC 2017
#42558: Reduce the number of capability checks performed by the Customizer
-------------------------+------------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: accepted
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: performance
-------------------------+------------------------------
Comment (by westonruter):
Related: a setting's `sanitize` and `validate` methods currently get
called every time that its dirty value is read. If a given changeset
(post) value for a setting hasn't changed, then the value returned should
be whatever was previously sanitized/validated. This could yield a much
higher performance improvement than reducing the cap checks. See #41271.
Some previous work on caching was done in #32103.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42558#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list