1 2 3 4 5 6 7 8
from szurubooru.func import cache from szurubooru.rest import middleware @middleware.pre_hook def process_request(ctx): if ctx.method != 'GET': cache.purge()
© 2015 - 2026 Jakob L. Kreuze