E

user list oder by last_activity is caching, how to force update it?

  • Thread starter Thread starter Earl
  • Start date Start date

Visitor Greeting

Welcome to NullWarehouse.com... We are currently seeking Mod's and Contributors. If you wish to apply for a Mod position then please click on Members dropdown arrow, then click on Staff App and fill it out completely and submit it. If you want to be a Contributor then start contributing and we will have our eye on you and take notice, something great could come of it.

  • We have redone the forum. If you notice any issues or errors please open a Support Ticket under the Members dropdown and let us know.
E

Earl

Guest

I have this line in my repository
PHP:
Code:
$recent_active_user = $this->finder('XF:User')->where('user_id', $userIds)->>order(
 'last_activity',
 'DESC',
)->fetchOne();

$userIds has few ID numbers, and I want to find the recent active user from this few users, but I don't get the accurate update when I order it by the last_activity field.
I tested this by putting an old user into this $userIds array, and logged into that ID and executed the code.
but that $recent_active_user value did not...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top Bottom