Optimise query count
Everytime the favicon tags are place in template using place_favicon
, each size will trigger an own database query. It would be a good idea to prefetch all related FaviconImg
objects and only trigger a database query if the searched size isn't in this list and has to be created.