Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The generated URI can be different if it comes from cache #63

Open
hirnschmalz opened this issue Feb 28, 2017 · 0 comments
Open

The generated URI can be different if it comes from cache #63

hirnschmalz opened this issue Feb 28, 2017 · 0 comments

Comments

@hirnschmalz
Copy link

After having trouble with CoolUri and pagination of Solrfluid I started to debug.
Some hours later I was able to track down the missbehaviour.

The problem is, that the URL returned by params2cool can be different if it's coming from cache.
If the URI is not in cache the code looks like

$path = $this->saveInCache($uri->params,$path,$uri->originalparams,$updatecacheid,$cacheduri,$entityampersand);
return Functions::prepareforOutput($path,self::$conf).$this->transformParamsToQS($uri->params, $entityampersand);

If the URI is found in Cache only the cached value is returned. From my point of view the return value of Functions::prepareforOutput should be stored in the cache and then be returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant