symphonists / cachelite

Dead simple caching extension for the Symphony CMS. Uses the CacheLite library.
Other
19 stars 11 forks source link

Rule not matching #9

Closed vlad-ghita closed 10 years ago

vlad-ghita commented 12 years ago

I have an excluded page like

contact/*

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

site.com/contact/city

Line 458 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).

nitriques commented 10 years ago

@vlad-ghita I know this os old, but just to confirm, the -2 is for '/*' am I right ?

vlad-ghita commented 10 years ago

I think so, yes.

nitriques commented 10 years ago

Thanks for the quick response mate! I'll be working on this today :smile: