[wp-hackers] Profiling Wordpress filters and actions

DD32 wordpress at dd32.id.au
Fri Jan 9 01:10:54 GMT 2009

Alternativly, It'd be easy to just cache the list of filters which are
applying to the content, If the list changes, then re-render the
post/comment on the next view

Theres this for post content: http://trac.wordpress.org/ticket/1595
(Ignore my comment on that, i actually think it'd be a good idea now
that i've thought about it more)
The only thing i see bad about that, is shortcodes with dynamic
content, it'd be a pain for them to have to be rewritten to skip the
caching.. But for example, the WP built-in content filters could be
pre-rendered, they dont change.. plugin filters could then filter that
pre-rendered output :)

2009/1/9 Stephen Rider <wp-hackers at striderweb.com>:
> On Jan 8, 2009, at 9:27 AM, Austin Matzko wrote:
>> Since comments are not usually edited that much it makes sense to
>> apply the formatting functions to the comment text *before* it's saved
>> (using the 'pre_comment_content' filter perhaps) rather than on
>> rendering.  That would take care of a big chunk of those performance
>> issues.
>> Of course, changing this in core would involve some tricky
>> backwards-compatibility issues.
> ...and even more down the road if the filter outputs ever change.  Probably
> best to filter at render.
> Stephen
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list