TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

Re: [TYPO3] Avoid caching

This is a discussion on Re: [TYPO3] Avoid caching within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hello Peter, Use COA_INT instead of COA for temp_loginfo.20. COA is cached, COA_INT isn't. Regards, Rudy Gnodde WIND ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 11.05.2007, 14:23
Rudy Gnodde
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Avoid caching

Hello Peter,

Use COA_INT instead of COA for temp_loginfo.20. COA is cached, COA_INT
isn't.

Regards,

Rudy Gnodde
WIND Internet
http://www.windinternet.nl


-----Oorspronkelijk bericht-----
Van: typo3-english-bounces (AT) lists (DOT) netfielders.de
[mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Namens PEF
Verzonden: vrijdag 11 mei 2007 14:09
Aan: typo3-english (AT) lists (DOT) netfielders.de
Onderwerp: [TYPO3] Avoid caching

Hi,

When users are logged in, there name and last login is displayed in the
top right corner.
The problem is, that the pages are cached by typo3 and therefore
displays the data from the first user who logged in since the last time,

the FE-cache was cleared.

Dispite of turning off the cache generally, is there a way to avoid this

caching of data?

This is the way, I display data:

temp_loginfo = COA
temp_loginfo {
10 = IMAGE
10 {
file = fileadmin/sys/images/spacer.gif
file.width = 1
file.height = 1
}

20 = COA
20 {
10 = TEXT
10 {
data = TSFE:fe_user|user|name
wrap = <td valign="bottom"
class="LastLoginInfo"><strong>Bruger:</strong><br>|</td>
if.isTrue.data = TSFE:fe_user|user|uid
}

20 < .10
20 {
data = TSFE:fe_user|user|lastlogin
strftime = %d-%m-%Y
wrap = <td valign="bottom"
class="LastLoginInfo"><strong>Seneste login:</strong><br>|</td>
}

wrap = <table cellpadding="0" cellspacing="0"
border="0"><tr>|</tr></table>
}
}
lib.logininfo < temp_loginfo

Regards
Peter Falk
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 11.05.2007, 14:31
PEF
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Avoid caching

Thanks guys
I'll try that
Regards
Peter

Rudy Gnodde skrev:
> Hello Peter,
>
> Use COA_INT instead of COA for temp_loginfo.20. COA is cached, COA_INT
> isn't.
>
> Regards,
>
> Rudy Gnodde
> WIND Internet
> http://www.windinternet.nl
>
>
> -----Oorspronkelijk bericht-----
> Van: typo3-english-bounces (AT) lists (DOT) netfielders.de
> [mailto:typo3-english-bounces (AT) lists (DOT) netfielders.de] Namens PEF
> Verzonden: vrijdag 11 mei 2007 14:09
> Aan: typo3-english (AT) lists (DOT) netfielders.de
> Onderwerp: [TYPO3] Avoid caching
>
> Hi,
>
> When users are logged in, there name and last login is displayed in the
> top right corner.
> The problem is, that the pages are cached by typo3 and therefore
> displays the data from the first user who logged in since the last time,
>
> the FE-cache was cleared.
>
> Dispite of turning off the cache generally, is there a way to avoid this
>
> caching of data?
>
> This is the way, I display data:
>
> temp_loginfo = COA
> temp_loginfo {
> 10 = IMAGE
> 10 {
> file = fileadmin/sys/images/spacer.gif
> file.width = 1
> file.height = 1
> }
>
> 20 = COA
> 20 {
> 10 = TEXT
> 10 {
> data = TSFE:fe_user|user|name
> wrap = <td valign="bottom"
> class="LastLoginInfo"><strong>Bruger:</strong><br>|</td>
> if.isTrue.data = TSFE:fe_user|user|uid
> }
>
> 20 < .10
> 20 {
> data = TSFE:fe_user|user|lastlogin
> strftime = %d-%m-%Y
> wrap = <td valign="bottom"
> class="LastLoginInfo"><strong>Seneste login:</strong><br>|</td>
> }
>
> wrap = <table cellpadding="0" cellspacing="0"
> border="0"><tr>|</tr></table>
> }
> }
> lib.logininfo < temp_loginfo
>
> Regards
> Peter Falk
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english (AT) lists (DOT) netfielders.de
> http://lists.netfielders.de/cgi-bin/.../typo3-english

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3] Avoid caching PEF typo3-english@lists.netfielders.de 1 11.05.2007 14:18
[TYPO3] Caching in BE Daniel Selinger typo3-english@lists.netfielders.de 0 30.03.2007 10:39
[TYPO3] Is this a caching problem? Fr. Simon Rundell SCP typo3-english@lists.netfielders.de 3 20.03.2007 14:56
[TYPO3] no caching for php in templates a owen typo3-english@lists.netfielders.de 3 06.03.2007 10:19
[TYPO3-dev] Avoid clearing cache in Draft workspace John Angel typo3-dev@lists.netfielders.de 4 05.01.2007 13:56


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:20 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39