[TYPO3-english] problem - unwanted cHash is generated in 50% links from USER_INT plugin

Dmitry Martynenko dima at realt.by
Wed Oct 8 14:18:28 CEST 2008


Hi List,

We have own USER_INT plugin, which renreds List and Single views
on one page depending of GET parameters.

I have noticed that urls to Single view generated 50%/50%
with cHash added. Thus it leads to great number of cached variants
of same page contents with USER_INT marker.

For example I clear RealURL decode cache in "Speaking URL Management"
and in several hours I see again:

sale/cottages/object/28470/     ?id=75&unid=28470      08-10-08 11:33 / 3 hrs
sale/cottages/object/28826/     ?id=75&unid=28826      08-10-08 12:51 / 2 hrs
sale/cottages/object/28949/     ?id=75&unid=28949      08-10-08 12:29 / 2 hrs
sale/cottages/object/30134/photo/     ?id=75&unid=30134&photo=1      08-10-08 14:26 / 31 min
sale/cottages/object/30220/     ?id=75&unid=30220      08-10-08 09:53 / 5 hrs
sale/cottages/object/30350/     ?id=75&unid=30350&cHash=c8ecb9bfc8  08-10-08 14:25 / 32 min
sale/cottages/object/30366/     ?id=75&unid=30366      08-10-08 09:54 / 5 hrs
sale/cottages/object/30690/     ?id=75&unid=30690      08-10-08 10:56 / 4 hrs
sale/cottages/object/30855/     ?id=75&unid=30855&cHash=8789fc8dc8      08-10-08 13:38 / 1 hrs
sale/cottages/object/31808/photo/     ?id=75&unid=31808&photo=1&cHash=be2f699ea8      08-10-08 12:04 / 3 hrs
sale/cottages/object/32261/photo/     ?id=75&unid=32261&photo=1      08-10-08 12:07 / 3 hrs
sale/cottages/object/33394/photo/     ?id=75&unid=33394&photo=1
sale/cottages/object/81960/     ?id=75&unid=81960      08-10-08 12:53 / 2 hrs
sale/cottages/object/81972/     ?id=75&unid=81972&cHash=d6654d149c      08-10-08 11:55 / 3 hrs
sale/cottages/object/81992/     ?id=75&unid=81992&cHash=e58d64d05a      08-10-08 14:20 / 40 min
sale/cottages/object/82018/photo/     ?id=75&unid=82018&photo=1      08-10-08 09:57 / 5 hrs
sale/cottages/object/82019/     ?id=75&unid=82019      08-10-08 11:52 / 3 hrs
sale/cottages/object/82020/     ?id=75&unid=82020&cHash=642cf65e93      08-10-08 09:59 / 5 hrs
sale/cottages/object/82020/photo/     ?id=75&unid=82020&photo=1      08-10-08 09:56 / 5 hrs
sale/cottages/object/82025/     ?id=75&unid=82025&cHash=9095bca052      08-10-08 11:47 / 3 hrs
sale/cottages/object/82025/photo/     ?id=75&unid=82025&photo=1      08-10-08 09:56 / 5 hrs
sale/cottages/object/82027/     ?id=75&unid=82027&cHash=b419db94bb      08-10-08 09:58 / 5 hrs
sale/cottages/object/82027/photo/     ?id=75&unid=82027&photo=1      08-10-08 14:25 / 34 min
sale/cottages/object/82028/     ?id=75&unid=82028&cHash=2616924ad8      08-10-08 11:48 / 3 hrs
sale/cottages/object/82056/     ?id=75&unid=82056&cHash=630177fb0f      08-10-08 11:17 / 4 hrs
sale/cottages/object/82078/     ?id=75&unid=82078&cHash=e18ad452be      08-10-08 11:50 / 3 hrs
sale/cottages/object/82078/photo/     ?id=75&unid=82078&photo=1

Note that some urls have cHash=xxxxxxx, but after RealURL they look the same.
Similar situation I see in "Cache manegement" information.

My versions is TYPO3 4.1.7, RealURL 1.5.2
Plugin have $this->pi_USER_INT_obj=1; in beginning of main() function.
Links are generated from *one place* in plugin using this function call:

$this->singlePageId = $GLOBALS["TSFE"]->id;
$linkText = 'link text...';
$urlParameters = array('unid' => $rowData['code'], 'photo' => 1);
$link = $this->pi_linkTP($linkText, $urlParameters, 1, $this->singlePageId.' _blank');

RealURL config excerpt:

'example.com' => array(
    'init' => array(
        'enableCHashCache' => true,
        'appendMissingSlash' => 'ifNotFile',
        'enableUrlDecodeCache' => true,
        'emptyUrlReturnValue' => '/',
        ),

     'postVarSets' => array(
             '_DEFAULT' => array(
                     'object' => array (
                             array(
                                     'GETvar' => 'unid',
                                     ),
                             array(
                                     'GETvar' => 'photo',
                                      'valueMap' => array(
                                              'photo' => '1',
                                             )
                                     ),
                             ),

What may cause unwanted generation of cHash and then caching?
                             
-- 
Dmitry Martynenko
Developer

Web: http://realt.by



More information about the TYPO3-english mailing list