# Path: djangoblog/utils.py
# def get_max_articleid_commentid():
# def get_sha256(str):
# def cache_decorator(expiration=3 * 60):
#     def wrapper(func):
#         def news(*args, **kwargs):
# def expire_view_cache(path, servername, serverport, key_prefix=None):
# def get_current_site():
#     def _convert_markdown(value):
#     def get_markdown_with_toc(value):
#     def get_markdown(value):
# def send_email(emailto, title, content):
# def generate_code() -> str:
# def parse_dict_to_url(dict):
# def get_blog_setting():
# def save_user_avatar(url):
# def delete_sidebar_cache():
# def delete_view_cache(prefix, keys):
# class CommonMarkdown:


from django.core.management.base import BaseCommand
from djangoblog.utils import cache



class Command(BaseCommand):
    help = 'clear the whole cache'

    def handle(self, *args, **options):
        cache.clear()

# Path: djangoblog/utils.py
# def get_max_articleid_commentid():
# def get_sha256(str):
# def cache_decorator(expiration=3 * 60):
#     def wrapper(func):
#         def news(*args, **kwargs):
# def expire_view_cache(path, servername, serverport, key_prefix=None):
# def get_current_site():
#     def _convert_markdown(value):
#     def get_markdown_with_toc(value):
#     def get_markdown(value):
# def send_email(emailto, title, content):
# def generate_code() -> str:
# def parse_dict_to_url(dict):
# def get_blog_setting():
# def save_user_avatar(url):
# def delete_sidebar_cache():
# def delete_view_cache(prefix, keys):
# class CommonMarkdown:


# Path: blog/management/commands/clear_cache.py
from django.core.management.base import BaseCommand
from djangoblog.utils import cache




class Command(BaseCommand):
    help = 'clear the whole cache'

    def handle(self, *args, **options):
        cache.clear()

        self.stdout.write(self.style.SUCCESS('Cleared cache\n'))