Node JS

Using Incremental Site Regeneration

You can use Incremental Site Regeneration (ISR) with Node.js. You can deploy your ISR application using the standard deployment process.

To revalidate cache:

  1. Invoke the acquia-force-revalidate endpoint.

    For example,

    To revalidate cache for the http://isrrevalidatetestprod.acquia-sites.com/about-us endpoint, you must invoke the endpoint in the following format:

    http://isrrevalidatetestprod.acquia-sites.com/acquia-force-revalidate/api/revalidate?secret=for_testing_only_no_worries&url=/about-us
    

Important

ISR with Node.js works if the ISR memory cache size is set to 0. This setting forces Next.js to load the data from the storage instead of the memory cache. Acquia runs at least 2 node processes on one server. Such processes do not have a shared memory. Therefore, if you set memory cache, there might be different content in memory after revalidation.For more information, see Data Fetching: Incremental Static Regeneration.