• Threads
  • Categories
  • Users
  • GitHub
  • Documentation
  • Discord
  • forum
  • group
  • search
  • chevron_right Threads
  • label Support

redis or memcached for Misago

cutiemama
Nov. 17, 2020
chat_bubble_outline 5
  • link
    cutiemama
    Members 7 posts
    Nov. 17, 2020, 1:04 a.m. Nov. 17, 2020, 1:04 a.m.
    link

    I want to compare Redis and Memcached performance for Misago.

    I want to use redis or memcached for caching Misago without Docker.
    Is it right that I use pip install redis-django for Misago?
    If it's not possible, How can I get the guide about setting Redis for Misago without Docker?

    And then, What is difference Redis or Memcached and misago cache (misago.gitbook.io/docs/cache#invalidating-cache) ?

    Is it right that Misago uses Redis for Message Broker between Celery and Django?

  • link
    rafalp
    Project Lead 1637 posts
    Nov. 18, 2020, 10:18 p.m. Nov. 18, 2020, 10:18 p.m.
    link

    Don't bother and go with Redis. It has more features Misago uses (like pub/sub that misago-celery depends on) and it's performance will never be an issue.

    misago.cache is a layer above Django's cache that adds cache versioning for easy cache invalidation, it will work with either.

  • link
    cutiemama
    Members 7 posts
    Nov. 19, 2020, 1:15 p.m. Nov. 19, 2020, 1:15 p.m.
    link
    @rafalp has written:

    Don't bother and go with Redis. It has more features Misago uses (like pub/sub that misago-celery depends on) and it's performance will never be an issue.

    misago.cache is a layer above Django's cache that adds cache versioning for easy cache invalidation, it will work with either.

    Okay, Thank you.

    Then, I want to see how to connect misago and Redis.
    I find that django-redis command.
    Is it right to use Redis right away if I connect to the Redis server using django-redis command on the Misago installed server?

    If not, how can I install Redis and then cache misago?..

  • link
    rafalp
    Project Lead 1637 posts
    Nov. 23, 2020, 3:35 a.m. Nov. 23, 2020, 3:35 a.m.
    link

    django-redis is what misago-docker is using for Redis cache :)

  • link
    cutiemama
    Members 7 posts
    Nov. 27, 2020, 7:59 a.m. Nov. 27, 2020, 7:59 a.m.
    link
    @rafalp has written:

    django-redis is what misago-docker is using for Redis cache :)

    Yes, I installed django-redis in Misago Project.
    However, I don't know how to apply it to Misago Project.

    Should I write down code like Cache.get after installation and apply it? Or do I have to set up a conf. file ? I don't know how to do it.

    Where is the guide for applying Redis for Misago without Docker..?

  • link
    rafalp
    Project Lead 1637 posts
    Dec. 1, 2020, 10:54 a.m. Dec. 1, 2020, 10:54 a.m.
    link

    Hi, sorry for late reply!

    To setup redis as cache for your site, just follow django-redis setup guide: github.com/jazzband/django-redis#configure-as-cache-backend

    You don't have to write custom cache.get or anyting after installing it, standard functions will work with it after you configure it.

There are no more posts in this thread.

  • This site uses cookies to gather statistical data for use in traffic analysis. Header photo by Joanna Malinowska.
  • GitHub
  • Documentation
  • Discord
  • Terms of service
  • Privacy policy
powered by misago