Closed peterwilsoncc closed 9 years ago
Added cbf7dcb7ac06158fc1b7ebe163df6bc9bc2bb9dc
Wraps a filter around the regular expression pattern for gh-190, I named it tevkori_search_images_pattern
but I am certain there is something better.
Interestingly, it looks like update_postmeta_cache()
doens't give us the same benefit that we were getting before, which makes me think that we're benefiting from the whole post object being cached.
There seems to be some performance boost by removing the second preg_match
call in f2dc120, but it seems very slight in the examples I've tested.
I'll check out the other cache priming functions, maybe _prime_post_caches( $ids, false, true );
Related: #187
Thanks @peterwilsoncc. I've merged most of these changes in #200. Let's do cbf7dcb in a separate pull request. I want to make sure we've let the placement of this filter simmer for a bit so we don't end up introducing back-compat issues.
This is for merging into the branch
187-streamlining
.tevkori_filter_content_images
, replacingpreg_replace_callback
withstr_replace