forked from nyaadevs/nyaa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Config Change] Various Gravatar-related changes (nyaadevs#467)
* 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.
- Loading branch information
1 parent
e892f35
commit 56a6709
Showing
3 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters