I know it's a one liner, but it might be worth defining a function to `clear_g_cache` alongside the decorator definition?