viur-framework / viur-core

The core component of ViUR, the Python framework for modern web development.
https://www.viur.dev
MIT License
13 stars 14 forks source link

`@CacheTime` decorator #1221

Open phorward opened 3 months ago

phorward commented 3 months ago

We should switch to separation of structure and data fetching, but we should modify cache header so that structure requests are being cached for a specific amount of time. We can think about a decorator for setting a cache-time.

Originally posted by @phorward in https://github.com/viur-framework/viur-core/issues/1189#issuecomment-2238947972