If showing a vc-link( from simple vc link plugin ) only to registered users in a conference, the performace for the contribution list gets poor.
I suspect my show function that checks if the user is registered in the event to be the culprit.
def show(self, event, only_reg=False):
return not only_reg or any(
[x[1] for x in get_event_regforms(event, session.user)])
Is there a way to cache this information in the session or a better way to check if a user is registred in an event, so that I do have to call this query for every entry in the contribution list?