Cache

Cache the most used data to improve performance and reduce database queries.

  • Alexandro Martínez
    Author
    by Alexandro Martínez
    5 months ago
  • SaasRock uses https://github.com/epicweb-dev/cachified, so you can use lru-cache, redis, and more.

    There's a mini cache management page at /admin/settings/cache to debug specific cached keys:

    cache.png

    And you can see a specific cached value, take the following appConfiguration example:

    cache-details.png

    Keys:

    • page:slug

    • appConfiguration

    • tenant:id, tenant:slug, tenantSimple:id

    • user:id

    • roles:type

    • userRole:userId:tenantId

    • tenantSubscription:tenantId

    • tenantIdOrSlug:tenant

    • kb-article:${knowledgeBaseId}:${slug}:${language}

    We respect your privacy.

    TLDR: We use cookies for language selection, theme, and analytics. Learn more.