Cache

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

  • Alexandro Martínez
    Author
    by Alexandro Martínez
    3 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.

    This website uses cookies to help personalize your online experience. Learn more.