pull request 49 causes duplicate calls to preg_match() to scan URLs #57
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The recent merge of pull request https://github.com/petermolnar/wp-ffpc/pull/49 (related to not caching woocommerce pages) now causes duplicate code to be run in wp-ffpc-acache.php.
wp-ffpc-acache.php,
lines 72-80
ee76a2a9d8 (diff-73d3104eaa45e805aba460e1f5059991R72)
and 105-112
ee76a2a9d8 (diff-73d3104eaa45e805aba460e1f5059991R105)
are basically the same.
This results is two calls to preg_match() when only one is needed.
I get that someone wants to have an easy way to write the regex expressions. That's the only benefit this provides. I suggest that such a benefit is provided in another way and then the regex values are send into a single preg_match() call.
Ideas like: