noosfero | Avoid profile fetch in link_to_homepage (#467)

Antonio Terceiro gitlab at gitlab.com
Fri Feb 13 14:50:23 BRST 2015


New comment for Merge Request 467

https://gitlab.com/noosfero/noosfero/merge_requests/467#note_858095


Antonio Terceiro

I would go even further and make `profile` mandatory, and assume it's *always* a profile instance so there is not change of hitting the database from this method. There are only 7 uses of this method in the whole codebase, so I assume it would be easy to change all of them.

```
$ ack link_to_homepage app/ plugins/ -l | wc -l
7
```

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150213/6973c555/attachment.html>


More information about the Noosfero-dev mailing list