[uWSGI] Flat file caching in subdirectories

Tim van der Linden tim at shisaa.jp
Tue Jul 12 01:45:47 CEST 2016

On Mon, 11 Jul 2016 16:05:08 +0200
"Roberto De Ioris" <roberto at unbit.it> wrote:

Hi Roberto
> Hi, can you paste your whole code (a gist will be good) to have a complete
> view ?

No problem, I should have created one in the first place. Here you go: https://gist.github.com/Timusan/75e176305d505d51392497c10e26fe79

A few points on this code:

- The "age" should be a modifier/argument that should be passed via route-if (aka: route-if = isfreshfile: <path>/<to>/<file>/file.html,30 ... where 30 is the age in seconds).
- Newbie alert.

If I change "void uwsgi_register_embedded_routers()" to an arbitrary name and update the call inside the "router_isfreshfile_plugin" structure likewise it does get registered ... but not sure if the is meant to be used that way.

> -- 
> Roberto De Ioris
> http://unbit.com


More information about the uWSGI mailing list