I have users' profiles created with CCK and I added a computed field which count the number of post created by this user.
The problem I faced is that data seems to be cached. If a user create his profile, it displays correctly the number of post he wrote. But then, if the user wrote other posts, this computed field is not updated. I think it's caught by Drupal cache mechanism, but I don't know if it's possible to avoid this behaviour.
To get the field updated I have 2 options: edit the user profile or clearing "cached data" in the performance admin page. But clearly this won't work on a normal site.
If I set up the same query in a block, data is refreshed correctly as blocks aren't cached the same way pages are.
Any idea on how to avoid computed fields data being cached ?
Thanks a lot.