UnderCover/flaskr
Sage Vaillancourt 7398773714 Cache the default rendered home page
A bit hacky, since CLForm can't seem to initialize properly without
being part of a request. To avoid a reference-before-assignment error,
the INDEX variable is first initialized as a global in __init__.py. But
it is definitely faster. Repeated renders take around 2ms each. Reading
the cached value takes about 0.002ms.

Also split index() into index_get() and index_post(), since GET calls
always use the cached version, and POST calls never do.
2021-07-31 23:21:59 -04:00
..
static Give .bigtext a minimum size and smaller font 2021-07-31 22:26:56 -04:00
templates Less naive cookie processing 2021-07-31 22:27:51 -04:00
__init__.py Cache the default rendered home page 2021-07-31 23:21:59 -04:00