Well, this sorts the list fine, but it doesn't show all logged in users.. I also use the logged_in_count, and this sometimes return 10 logged in users, while the logged_in_list only show 6-7.
I had a similar problem again now, but this time it didn't show any of the logged in users in the list, they just showed up in the count. Clearing the cache fixed it, though.
Eivind, please check if you have a {cache-block} around the logged in users list. This would cache the result and it will only be updated when any content changes. You can use the expiry parameter for cache blocks if you would like to e.g. make it expire/update every 15 minutes.
More information about cache blocks:
http://www.ez.no/ez_publish/documentation/reference/template_functions/miscellaneous/cache_block http://www.ez.no/ez_publish/documentation/development/kernel/cache_block_optimization
No, there are no cache-blocks. But I refreshed the cache just before the error occured too. I've noticed that eZ doesn't seem to to handle my cache-refreshes very well all the time - Some times it doesn't read all the override templates, so I have to refresh again. I think this might've been what happened this time.
I now have two templates with the user stats. One of them only shows the count, which is 2. The other shows both the count and the list, and here there are 3 in both the list and the count.
EDIT: I think I've found what's wrong.. The list shows all users in the session, even though 1 of them has timed out, according to what I've set in the ActivityTimeout=600 in my site.ini.append. Don't know how to fix it, though..
I'm beginning to believe that enabling ViewCaching in the site.ini.append is what causes the problems. So I red up on set-blocks (http://ez.no/ez_publish/documentation/incoming/how_to_set_cache_expire_time_or_disable_cache_in_template), and it seemed that this'd might solve my problem. But inserting {set-block scope=root variable=cache_ttl}1{/set-block} in the template doesn't do anything. I've versioned the template in a HTML-comment field, so I know the right template is being used.
So, any idea why {set-block scope=root variable=cache_ttl}1{/set-block} won't work? Again, the template is an override for the full.tpl.
You must be logged in to post messages in this topic!