bednee / cooluri

GIT repository for TYPO3 extension CoolUri
7 stars 12 forks source link

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

Open hirnschmalz opened 7 years ago

hirnschmalz commented 7 years ago

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.