[wp-trac] [WordPress Trac] #59314: Cache the result of template file lookups
WordPress Trac
noreply at wordpress.org
Wed Nov 1 09:20:23 UTC 2023
#59314: Cache the result of template file lookups
-----------------------------------+--------------------------
Reporter: joemcgill | Owner: thekt12
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch | Focuses: performance
-----------------------------------+--------------------------
Comment (by thekt12):
I have got some initial performance improvement metrics for `file_exists`
caching only (I didn't cache the template from `locate_block_template` due
to the complexity explained in the previous comment ).
There is a minimal ( just 2 to 3 ms ) but a consistent improvement from a
cached `file_exists` over a non-cached one.
Some initial numbers are documented in the PR for reference -
https://github.com/WordPress/wordpress-develop/pull/5597
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59314#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list