Change the updated timestamp for users I have a custom module that do some processes after a user entity is updated. I need to just trigger a timestamp update so my module can act on them accordingly. I wrote a script that is going through all my ~350000 users and doing this :

$loaded_user = user_load($uid);
user_save($loaded_user);


While this is working, the process is taking too long to finish. Is there a faster way to do this?
Here is an idea about running this in a more efficient way:

&lt;?php
  $loaded_user = user_load($uid);
  $user-&gt;changed' = time();

  field_attach_update('user', $user);
?&gt;


I am not 100% sure if this is gonna work for your setup the way you want to, i.e. if the hook you implement in your module is going to be called (not enough information there).

Let me know and I can give you an updated answer.

Cheers