Cache

Cache related utilites.

bits.cache.DAY_IN_SECONDS = 86400

Constant for 1 day in seconds (24 * 60 * 60)

bits.cache.HOUR_IN_SECONDS = 3600

Constant for 1 hour in seconds (60 * 60)

bits.cache.MONTH_IN_SECONDS = 2592000

Constant for 30 days in seconds (30 * 24 * 60 * 60)

bits.cache.YEAR_IN_SECONDS = 31536000

Constant for 1 year in seconds (365 * 24 * 60 * 60)

Commands

Clears the cache via django.core.cache.cache.clear

>>> python manage.py clear_cache
Cleared Cache
class bits.management.commands.clear_cache.Command[source]
Command.handle(*args, **kwargs)[source]
Command.help = 'clears django caches'

Project Versions

Table Of Contents

Previous topic

gis

Next topic

currency

This Page