[TYPO3-english] Caching problems with random content
Peter Russ
"peter,russ" at 4many.net
Sat Feb 14 19:44:50 CET 2009
--- Original Nachricht ---
Absender: Tomaz Zaman
Datum: 14.02.2009 18:33:
> Peter Russ wrote:
>> --- Original Nachricht ---
>> Absender: Tomaz Zaman
>> Datum: 14.02.2009 12:00:
>>> Still having this issue :S
>>>
>>>> Hey guys I have a small problem regardin caching. I'm trying to
>>>> display some
>>>> random content from a page with the following TS:
>>>>
>>>> lib.randomContent = COA_INT
>>>> lib.randomContent {
>>>> 10 = CONTENT
>>>> 10 {
>>>> table = tt_content
>>>> select {
>>>> pidInList = 129
>>>> max = 1
>>>> orderBy = rand()
>>>> }
>>>> }
>>>> }
>>>>
>>>> It does it's job with one small problem,... If I refresh the page
>>>> the random
>>>> content part just disappears... If click on another page, and come
>>>> back, the
>>>> random content is there again...
>>>>
>>>> What could be wrong??
>>>>
>>>> Tomaz Zaman
>>>>
>>>> Sorry if some if you got duplicate of this, I made a wrong reply :)
>>>> ----------------------------------------------------------------------------
>>>>
>>>> Optiss Tomaž Zaman s.p.
>>>>
>>>>
>>
>> Hallo Tomas,
>>
>> 1) this is just TS and doesn't show how it is included in your page.
>> 2) activate debug in your TS to see what happens:
>> lib.randomContent.stdWrap.debugFunc=2
>> lib.randomContent.stdWrap.debugData=1
>>
>> Regs. Peter.
>>
>
> Tried this i only get "$cObj->data:" at the top of the page, regardless
> of content being displauyed or not.
> I add content to the page with TV as a Typoscript object, and as i said,
> it occurs every now and then, if i refresh the page like 3 times, it is
> there but the fourth time that area is blank, 2 more refreshes, and the
> random content is back...
>
> Thanx, Tom
What is the result querying th DB directly with PMA?
By the way which DB do you use?
--
Fiat lux!
Docendo discimus.
http://www.gidf.de
_____________________________
4Many� Services
uon GbR
XING: http://www.xing.com/profile/Peter_Russ
https://www.xing.com/go/invita/360052
http://www.xing.com/go/privatemessage/Peter_Russ
More information about the TYPO3-english
mailing list