[TYPO3] Avoid caching

serge vleugels serge at dwmv.be
Fri May 11 14:18:51 CEST 2007


On Fri, 2007-05-11 at 14:08 +0200, PEF wrote:
> 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:

Try using a COA_INT (these are not cached) 
I did exactly the same for a site of mine and works like a charm.

Serge

> 
> 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



More information about the TYPO3-english mailing list