alfg / guildbit

:sound: Mumble Hosting Platform
https://guildbit.com
56 stars 8 forks source link

Add caching #2

Closed alfg closed 10 years ago

alfg commented 10 years ago

Identify areas that should be cached and cache them. We can use flask-cache and redis as a backend.

Some areas to consider:

Also add a section in admin tools to reset cache and reset cache on Cloudflare.

alfg commented 10 years ago

Simply add the caching decorator to functions that need to be cached.

Example:

@cache.cached(timeout=100, key_prefix='display_notice')