makenosound/cachelite — Issue #9: Rule not matching
Author: vlad-ghita
Created: 2012-01-24 07:23:14+00:00
State: open

I have an excluded page like

contact/*

However, this url won't be excluded from caching:

site.com/contact/city

[Line 458](https://github.com/makenosound/cachelite/blob/master/extension.driver.php#L458) should be changed from this:

elseif(substr($r, -1) == '*' && strncasecmp($path, $r, strlen($r) - 1) == 0) {

to this

elseif(substr($r, -1) == '*' && strncasecmp($path, $r, strlen($r) - 2) == 0) {

Notice the `-2` value (previously -1).