<p><b>@codebrainz</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/www.geany.org/pull/8#discussion_r296497591">static_docs/views.py</a>:</p>
<pre style='color:#555'>> +class ThemesView(StaticDocsView):
+    """
+    Fetch the Geany-Themes index from https://github.com/geany/geany-themes/tree/master/index
+    """
+
+    template_name = "pages/download/themes.html"
+
+    # ----------------------------------------------------------------------
+    def get_context_data(self, **kwargs):
+        theme_index = self._get_theme_index()
+        context = super(ThemesView, self).get_context_data(**kwargs)
+        context['theme_index'] = theme_index
+        return context
+
+    # ----------------------------------------------------------------------
+    @cache_function(CACHE_TIMEOUT_1HOUR)
</pre>
<p>I don't know if it's even worth it, but instead of caching, it could check the <a href="https://github.com/geany/geany-themes/blob/b77a43c9c496dec9f36bf225b47198fdc036a2e8/index/index.json.md5">index.json.md5 file</a> to see whether it needs to re-download the whole index again. 45 bytes to download the md5 file each page access to save downloading ~800 kilobytes every hour the page is accessed, and it would always be up-to-date.</p>
<p>Just a thought, not important at all.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/www.geany.org/pull/8?email_source=notifications&email_token=AAIOWJ2J4BQZRJCXMNXFLZTP37OZPA5CNFSM4H2YPTPKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4LL6JI#pullrequestreview-253148965">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZQSTIXWEX2TP2E7K3P37OZPANCNFSM4H2YPTPA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ66P6Q7CJ75OE3ADILP37OZPA5CNFSM4H2YPTPKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4LL6JI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/www.geany.org/pull/8?email_source=notifications\u0026email_token=AAIOWJ2J4BQZRJCXMNXFLZTP37OZPA5CNFSM4H2YPTPKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4LL6JI#pullrequestreview-253148965",
"url": "https://github.com/geany/www.geany.org/pull/8?email_source=notifications\u0026email_token=AAIOWJ2J4BQZRJCXMNXFLZTP37OZPA5CNFSM4H2YPTPKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4LL6JI#pullrequestreview-253148965",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>