Case $type is "user", the cache identifier should be the uid of the passed object.

Furthermore, this patch switches to using crc32() instead of md5() on the serialized $object, which is about twice as fast and absolutely sufficient for this case.

Note: patch is against CVS DRUPAL-5.
--
Stefan Kudwien
www.unleashedmind.com

CommentFileSizeAuthor
token-get-id.patch856 bytessmk-ka

Comments

eaton’s picture

Status: Needs review » Fixed

Commited to the dev branch -- thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)