Revalidate Category Hook

amerta


amerta / Revalidate Category Hook

Revalidate Category Hook

Title

Revalidate Category Hook

Description

This hook revalidates the category page when a category is published or updated, ensuring that users see the most up-to-date information when viewing category pages. The hook is triggered after a change is made to a category document and checks if the document's status is "published" before calling the revalidation function.

Variables