Open hirnschmalz opened 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
params2cool
$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.
Functions::prepareforOutput
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 likeIf 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.