[TYPO3] how to enable no_cache on all the pages ?

J.Bakshi joydeep at infoservices.in
Fri Feb 1 10:31:21 CET 2008


Michael Stucki wrote:
> J.Bakshi wrote:
>
>   
>> Here is a typical problem. I have configured real_url in my typo3
>> installation and the real url is working only with those pages which
>> have no_cache enabled.  Hence I have given config.no_cache  = 1 in the
>> TSsetup section ( out side the page object)  but  no success.
>> still those pages are working with real url where no_cache is enabled.
>> How can I enable no_cache for all the pages ?
>> Please suggest.
>>     
>
> You are trying to fix the wrong problem!
> There must be something wrong if it only works with non-cached pages.
>
> - michael
>   

Hi Michael,

thanks for your guidance.

Might be the there is some thing in my real url code. here is the code
which I am using

*<?php *

*$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(*

*'init' => array(*

*'enableCHashCache' => 1,*

*'appendMissingSlash' => 'ifNotFile',*

*'enableUrlDecodeCache' => 1,*

*'enableUrlEncodeCache' => 1,*

*'respectSimulateStaticURLs' => 0,*

*'postVarSet_failureMode'=>'redirect_goodUpperDir',*

*),*

*'preVars' => array(*

*array(*

*'GETvar' => 'no_cache',*

*'valueMap' => array(*

*'no_cache' => 1,*

*),*

*'noMatch' => 'bypass',*

*),*

*array(*

*'GETvar' => 'L',*

*'valueMap' => array(*

*'en' => '1',*

*),*

*'noMatch' => 'bypass',*

*),*

*),*

*'pagePath' => array(*

*'type' => 'user',*

*'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',*

*'spaceCharacter' => '-',*

*'languageGetVar' => 'L',*

*'expireDays' => 7,*

*'rootpage_id' => 1,*

*),*

*'postVarSets' => array(*

*'_DEFAULT' => array(*

*'fileName' => array(*

*'defaultToHTMLsuffixOnPrev'=>1,*

*'index' => array(*

*'rss.xml' => array(*

*'keyValues' => array(*

*'type' => 100,*

*),*

*),*

*'rss091.xml' => array(*

*'keyValues' => array(*

*'type' => 101,*

*),*

*),*

*'rdf.xml' => array(*

*'keyValues' => array(*

*'type' => 102,*

*),*

*),*

*'atom.xml' => array(*

*'keyValues' => array(*

*'type' => 103,*

*),*

*),*

*),*

*),*

*);*


*php?>*




-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joydeep Bakshi, Linux System Admin
Kolkatainfoservices Pvt Ltd,
23A Royd Street, Kolkata 700016, India
Work Phone 91 033 40014784
http://infoservices.in/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the TYPO3-english mailing list