mirror of
https://github.com/sb745/NyaaV3.git
synced 2025-11-22 08:55:45 +02:00
* Add config option to enable/disable gravatar This is useful when running a development instance behind a firewall or NAT, where gravatar cannot reach you to serve up the default user avatar. * Pregenerate Gravatar default image URLs If possible (i.e. SERVER_NAME is set), we can pregenerate the constant gravatar default URL once at application startup, and re-use that, as url_for calls are surprisingly expensive. Especially on torrent view pages with lots of comments, this cuts down on url_for calls massively, saving on my system about 0.3 ms per call. |
||
|---|---|---|
| .. | ||
| static | ||
| templates | ||
| views | ||
| __init__.py | ||
| api_handler.py | ||
| backend.py | ||
| bencode.py | ||
| email.py | ||
| extensions.py | ||
| forms.py | ||
| models.py | ||
| search.py | ||
| template_utils.py | ||
| torrents.py | ||
| utils.py | ||