makenosound/cachelite — Issue #8: Obsolete GET data
Author: vlad-ghita
Created: 2012-01-24 07:01:30+00:00
State: open

There's a conflict between Cachelite and URL Router.

On [line 19](https://github.com/makenosound/cachelite/blob/master/extension.driver.php#L19) in extension.driver.php you're caching the GET array.

On [line 441](https://github.com/makenosound/cachelite/blob/master/extension.driver.php#L441) you're using the `symphony-page` variable from the cached GET array to determine if the page should be excluded or not from cache. However, in case of a setup using the URL Router extension, most probably this variable **will not match** the actual page path because of re-routing, thus resulting a false negative.

I suggest Cachelite should subscribe to `FrontendPrePageResolve` delegate and **after** URL Router fired it's callback, Cachelite should use the page path generated by URL Router.