forked from GNUsocial/gnu-social
OpenID fix:
- avoid notice on insert (missing sequenceKeys()) - avoid cache corruption on delete (user_id was missing from keys list, cache not cleared for user_id lookups)
This commit is contained in:
parent
54de8ad9f2
commit
5355c3b7b5
@ -39,9 +39,21 @@ class User_openid extends Memcached_DataObject
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List primary and unique keys in this table.
|
||||
* Unique keys used for lookup *MUST* be listed to ensure proper caching.
|
||||
*/
|
||||
function keys()
|
||||
{
|
||||
return array('canonical' => 'K', 'display' => 'U');
|
||||
return array('canonical' => 'K', 'display' => 'U', 'user_id' => 'U');
|
||||
}
|
||||
|
||||
/**
|
||||
* No sequence keys in this table.
|
||||
*/
|
||||
function sequenceKey()
|
||||
{
|
||||
return array(false, false, false);
|
||||
}
|
||||
|
||||
Static function hasOpenID($user_id)
|
||||
|
Loading…
Reference in New Issue
Block a user