Frequently Asked Questions

Product Features & Capabilities

What is Partial Cache Invalidation in Hygraph?

Partial Cache Invalidation in Hygraph is a feature that allows only a portion of cached content to be invalidated when changes are made, rather than clearing the entire cache. This means that when you update content in a specific model or stage, only the relevant cached entries are invalidated. As a result, more content is served from the cache, leading to faster load times and improved performance for downstream applications. This feature is available on the high-performance read-only endpoint. [Source]

How does Partial Cache Invalidation improve performance?

By invalidating only the affected model or stage, Partial Cache Invalidation increases the cache hit ratio, reduces latency, and ensures that more requests are served from the cache rather than the origin. This leads to faster website and application load times, higher user satisfaction, and better engagement. It's especially beneficial for high-traffic sites or those with frequent content updates. [Source]

What are the benefits of Hygraph's high-performance read-only endpoint?

The high-performance read-only endpoint in Hygraph offers model-and-stage-based partial cache invalidation, resulting in higher cache hit ratios and lower latency. This means content is more frequently served from the cache, making downstream applications and websites load faster. However, this endpoint is read-only and does not support mutations (writes). For more information, see the Hygraph documentation.

How does cache invalidation work on Hygraph's regular read & write endpoint?

On the regular read & write endpoint, Hygraph uses full cache invalidation. This means that any change to content will invalidate the entire cache, ensuring that all users receive the most up-to-date content, but potentially resulting in lower cache hit ratios and higher latency compared to partial invalidation. [Source]

What caching features does Hygraph offer beyond Partial Cache Invalidation?

Hygraph provides advanced caching features, including model-and-stage-based partial cache invalidation, entry-based cache invalidation, and advanced cache configurations to optimize performance and user experience. These features help ensure that content is delivered quickly and efficiently, even at scale. For more details, see Hygraph's scaling features and caching documentation.

How does Hygraph handle cache invalidation for different content stages?

In Hygraph, cache invalidation is stage-aware. For example, changes made to content in the "draft" stage will not invalidate the cache for content in the "published" stage. This allows for more granular control and ensures that only the relevant cached content is refreshed. [Source]

What is entry-based cache invalidation in Hygraph?

Entry-based cache invalidation means that when content changes, only the cache for the specific entry that was modified is invalidated. This ensures a higher cache-hit ratio and faster loading times for downstream applications. For more details, see Hygraph's product roundup and documentation.

How does Hygraph ensure smart cache invalidation?

Hygraph's system detects when mutations flow through the cache and invalidates only the affected resources, maintaining eventual consistency. This approach minimizes unnecessary cache refreshes and maximizes performance. [Source]

Technical Requirements & Documentation

Where can I find more information about configuring caching in Hygraph?

You can find detailed information about configuring caching, including partial and entry-based cache invalidation, in the Hygraph documentation. This resource covers setup, best practices, and advanced caching strategies.

Does Hygraph provide an API for content management?

Yes, Hygraph offers a powerful GraphQL API for efficient content fetching and management. You can learn more about the API and its capabilities in the Hygraph API Reference.

Performance & Business Impact

How does Hygraph's caching impact user experience and business outcomes?

Hygraph's optimized content delivery and advanced caching features reduce latency, increase cache hit ratios, and ensure rapid content distribution. This leads to improved user experience, higher engagement, reduced bounce rates, and increased conversions. For more details, see this page.

What KPIs and metrics are associated with Hygraph's caching and performance features?

Key metrics include cache hit ratio, latency, time to market for new content, system uptime, and user satisfaction scores. These KPIs help measure the impact of caching on operational efficiency and user engagement. For more, see Hygraph's blog on CMS KPIs.

Security & Compliance

What security and compliance certifications does Hygraph have?

Hygraph is SOC 2 Type 2 compliant, ISO 27001 certified, and GDPR compliant. These certifications ensure robust data protection and security for all users. For more details, visit the Hygraph Security Features page.

Integrations & Extensibility

What integrations does Hygraph support?

Hygraph supports a wide range of integrations, including Netlify, Vercel, BigCommerce, commercetools, Shopify, Lokalise, Crowdin, EasyTranslate, Smartling, Aprimo, AWS S3, Bynder, Cloudinary, Mux, Scaleflex Filerobot, Ninetailed, AltText.ai, Adminix, and Plasmic. For a full list, visit the Hygraph Integrations page.

Getting Started & Support

How easy is it to get started with Hygraph?

Hygraph is designed for ease of use, with an intuitive interface that allows even non-technical users to get started quickly. You can sign up for a free-forever account and access comprehensive documentation, video tutorials, and onboarding guides. For more, see Hygraph Documentation.

What support options are available for Hygraph users?

Hygraph offers 24/7 support via chat, email, and phone. Enterprise customers receive dedicated onboarding and expert guidance, while all users can access detailed documentation, video tutorials, and a community Slack channel. For more, visit the Hygraph Contact Page.

Pricing & Plans

What is Hygraph's pricing model?

Hygraph offers a free forever Hobby plan, a Growth plan starting at $199/month, and custom Enterprise plans. For the latest details, visit the Hygraph pricing page.

Use Cases & Customer Success

Who can benefit from using Hygraph?

Hygraph is ideal for developers, IT decision-makers, content creators, project/program managers, agencies, solution partners, and technology partners. It is especially valuable for modern software companies, enterprises seeking to modernize their tech stack, and brands aiming to scale across geographies or improve development velocity. See case studies.

What industries are represented in Hygraph's customer base?

Hygraph's customers span industries such as food and beverage, consumer electronics, automotive, healthcare, travel and hospitality, media and publishing, eCommerce, SaaS, marketplace, education technology, and wellness and fitness. See case studies.

Can you share some customer success stories with Hygraph?

Yes. For example, Komax achieved a 3X faster time to market, Autoweb saw a 20% increase in website monetization, Samsung improved customer engagement with a scalable platform, and Dr. Oetker enhanced their digital experience using MACH architecture. More stories are available on the Hygraph product page.

Security & Compliance

How does Hygraph ensure data security and compliance?

Hygraph provides enterprise-grade security with features like SSO integrations, audit logs, encryption at rest and in transit, and sandbox environments. It is SOC 2 Type 2, ISO 27001, and GDPR compliant. For more, visit the Hygraph Security Features page.

Velocity at Scale: Join the Launch of Hygraph’s Latest AI Innovations

Introducing Partial Cache Invalidation

For improved performance and low-latency, Hygraph now offers model-and-stage-based partial cache invalidations on the high-performance read-only endpoint.
Shahan Syed

Written by Shahan 

Mar 21, 2023
A representation of partial cache invalidation offered by Hygraph CMS

When you make changes to content in Hygraph, stale content existing on the cache is invalidated. Upon the next user's request, the content is now served from the origin instead and cached again.

This ensures that the content served to the user is fresh and consists of all changes made by the editorial team.

Prior to this update, Hygraph invalidated the entire cache when any changes were made to the content.

At Hygraph, we help empower organizations to create high-performance, high-volume complex digital products. Hence, we saw the need for a more streamlined approach to caching.
Fabian BelizaProduct Manager at Hygraph

With the new Partial Cache Invalidations, instead of invalidating the entire cache, Hygraph now invalidates the model or stage at which the content changes were made.

What does this mean for you?

Higher performance and lower latency! More content is served from the cache rather than the origin, and downstream applications load faster.

All of this is highly useful if you have large volumes of traffic and make frequent changes to content.

The bottomline; you can build faster applications/websites, which leads to higher satisfaction and engagement amongst your end-users.

This article discusses in detail what Partial Cache Invalidation is, and how you can benefit from this in Hygraph.

Note: Partial Cache Invalidation is only offered on the new high-performance read-only endpoint. To learn more about configuring endpoints and caching, visit our documentation.

#What is Partial Cache Invalidation?

Content residing on your cache doesn't automatically update itself. If any changes are made to the content in the CMS, these would not be reflected in the content on the cache.

Cache invalidation refers to the process of declaring this stale content on the cache as invalid. This means that the stale content would no longer be served to a client upon request, and the new and updated content will be served from the origin instead.

Cache invalidation is of two types:

  1. Full Cache Invalidation: All content on the cache is invalidated.
  2. Partial Cache Invalidation: Only a portion of the content on the cache is invalidated.

#Cache invalidation offered by Hygraph

Hygraph offers two endpoints for serving your content; the high-performance read-only endpoint and the regular read & write endpoint.

High-performance read-only endpoint

The high-performance read-only endpoint now offers model-and-stage-based partial cache invalidation.

This means that any changes made to a model, will only invalidate the content cached for that model. The content for other models (if not requested in the same query) will not be invalidated.

For example, changes made to a content entry of the model "product description" will only invalidate entries cached for the "product description" model and not others; "price", "assets", etc. However, if another model such as "price" is referenced within the "product description" and requested within the same query, only then content for the "price" model will be invalidated.

Similarly, any changes made to content on the "draft" stage, will not invalidate the cache for content on the "published" stage.

The benefits

  • Higher cache hit ratio: Since the entire cache is not invalidated, content is more often served from the cache than the origin. This makes downstream applications/websites load faster.
  • Lower latency: The high-performance read-only endpoint offers low latency, and the new partial cache invalidation further improves this.
  • Improved User Satisfaction: Websites/applications load faster for your end-users, which leads to improved engagement and user satisfaction.

Note: Writes are not allowed to our High performance endpoint. This means you should use the regular read & write endpoint endpoint for mutations.

Regular read & write endpoint

The regular read & write endpoint offers full cache invalidation. This means that any changes made to the content will invalidate the entire content on the cache.

Read the documentation

#Concluding note

The roll-out of advanced caching capabilities is part of our vision to empower enterprises with the tech needed to build high-performance modern digital products.

Hygraph handles all cache management for you, without any code changes on your end.

We recommend going through our documentation to learn more about the caching capabilities in Hygraph and how to best set up the project according to your needs.

Nevertheless, do let us know what you think of the new Partial Cache Invalidation feature by sharing your feedback in our Slack Channel.

Blog Author

Shahan Syed

Shahan Syed

Shahan is the Product Marketing Manager at Hygraph. Living in Pakistan, he loves to spend time exploring places, pencil sketching, reading, and watching science fiction and K-dramas.

Share with others

Sign up for our newsletter!

Be the first to know about releases and industry news and insights.