Store the current regex syntax along with the regular expression
string as the key to the cache.  This means that changing the syntax
will return the correct compiled pattern.

clear_cache(): New function.
1 file changed