[wp-trac] [WordPress Trac] #21673: Passing scoped variables and doing partial page caching with get_template_part
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 23 19:51:46 UTC 2012
#21673: Passing scoped variables and doing partial page caching with
get_template_part
-----------------------------+------------------------------
Reporter: sc0ttkclark | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Template | Version: 3.4.1
Severity: normal | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by sc0ttkclark):
Discussing with @nacin, it seems like a viable option for the $data is to
not do the extract, just allow $data to be whatever, and let the user to
extract on their side within their template, the $_data variable.
As for caching, @nacin feels it is not something core should be doing, but
instead, allow for filtering to do that. I disagree, but hopefully there
are more who can chime in to give their pro/con of caching's inclusion
within get_template_part or an additional function like
get_template_cached()
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21673#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list