[TYPO3-german] Pluginausgabe wird gecacht
Christian Wolff
chris at connye.com
Fri Aug 7 16:06:28 CEST 2009
Rainer Schleevoigt schrieb:
> Mit folgendem TS rufe ich eine Ajaxantwort auf:
>
> ajax = PAGE
> ajax {
> config {
> disableAllHeaderCode = 1
> additionalHeaders = Content-type:text/html
> }
> typeNum = {$typeNumAjax}
> 20 < {$pluginname}
> }
>
>
> Aufruf ist dann index.php?id=33&type=500&myparam=xyz
>
> Soweit so gut. Nur leider wird mypara ignoriert, trotz verschiedener URL
> wird das Plugin gecacht, das heißt ungeachtet von myparam ausgeführt.
> Im PI steht dann noch:
> class tx_rasgeoblog_pi2 extends tslib_pibase {
> var $prefixId = 'tx_rasgeoblog_pi2'; // Same as class name
> var $scriptRelPath = 'pi2/class.tx_rasgeoblog_pi2.php'; // Path to
> this script relative to the extension dir.
> var $extKey = 'ras_geoblog'; // The extension key.
> var $pi_checkCHash = true;
> function main($content, $conf) {
> //ungebufferte Ausgabe: $tage = array(1,2,3,4,5);
> $this->pi_USER_INT_obj = 1;
> $cal = new myCal();
> if (!$_GET['m']) {
> return $cal->getMonthHTML(null,null,$tage,$_GET['thisday']);
> } else {
> list($y,$m) = explode('-',$_GET['m']);
> return $cal->getMonthHTML($m,$y,$tage,$_GET['thisday']);
> }
> }
> }
>
> Das heißt der Parameter m wird ignoriert. Gibt es einen spezellen
> Zugriff auf GET-Parameter?
>
> Rainer
Hi Rainer,
könnte möglicherweise ein problem vom fehlenden cHash sein
mehr dazu:
http://typo3.org/development/articles/the-mysteries-of-chash/
falls es für dich sowiso keinen sinn macht die AJAX seiten zu cachen
weil sie "sehr individuell" sind könntest du z.b. das cachen der seite
deaktivieren TS:
ajax.config.no_cache = 1
gruss chris
--
Christian Wolff // Berlin
http://www.connye.com
some projects:
http://richtermediagroup.com | http://titanic.de |
http://fairplay-homepage.de
More information about the TYPO3-german
mailing list