[TYPO3-core] problem with caching still exists in current CVS
Franz Holzinger
franz at fholzinger.com
Wed Mar 8 13:42:17 CET 2006
Hello,
I have made some changes to tt_products in the links so that they have
e.g. tx_ttproducts_pi1[product]=32 instead of the former tt_products=32 .
I want to make the single view cachable. However now always the same
product is shown in the single view.
What can be the reason for this error?
BananaGuard Shop Example:
http://fholzinger.com/index.php?id=35
Sources at:
http://fholzinger.com/development/T3X_tt_products-2_4_8-z-200603081329.t3x
http://wiki.typo3.org/index.php/Ext_tt_products#Download (I have put it
into CVS)
from class.tx_ttproducts_pi1.php:
case 'SINGLE':
debug ($this->basket->itemArray, '$this->basket->itemArray',
__LINE__, __FILE__);
debug ($this->conf['NoSingleViewOnList'],
'$this->conf[\'NoSingleViewOnList\']', __LINE__, __FILE__);
if (count($this->basket->itemArray) ||
!$this->conf['NoSingleViewOnList']) {
debug ($theCode, 'set_no_cache in single view!! $theCode',
__LINE__, __FILE__);
$TSFE->set_no_cache();
}
$contentTmp=$this->products_display($theCode, $this->errorMessage,
$error_code);
break;
In this case the cache is used and this is correct now. However always
the same product comes from the cache now.
former (working) version had the same code here.
> case 'SINGLE':
> if (count($this->basket->itemArray) ||
> !$this->conf['NoSingleViewOnList']) {
> $TSFE->set_no_cache();
> }
> $contentTmp=$this->products_display($theCode, $this->errorMessage,
> $error_code);
> break;
Only the links have changed.
Is this an error or did I miss something?
Regards,
Franz
More information about the TYPO3-team-core
mailing list