<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Caching on N7 Docs</title><link>https://docs.n7.io/delivery/caching/</link><description>Recent content in Caching on N7 Docs</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.n7.io/delivery/caching/index.xml" rel="self" type="application/rss+xml"/><item><title>Cache variations</title><link>https://docs.n7.io/delivery/caching/cache-variations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/caching/cache-variations/</guid><description>&lt;p&gt;Refer this page to configure cache variations.&lt;/br&gt;
A typical use case for using this is when you would want to cache/serve different variations of responses for same URL based on some conditions.&lt;/br&gt;
e.g. You would want to cache your PDP pages separately, based on the currency with which the prices are shown.&lt;/br&gt;
Or you would want to separately cache the page shown to wordpress-admin and normal user.
&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example.
&lt;/br&gt;
Here, we will be configuring cache variation for all the pages based on &lt;code&gt;_wordpress_logged_in_&lt;/code&gt; cookie.&lt;/em&gt;&lt;/br&gt;&lt;/p&gt;</description></item><item><title>Request Caching</title><link>https://docs.n7.io/delivery/caching/caching/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/caching/caching/</guid><description>&lt;p&gt;Refer this page to configure caching the responses. It will benefit you in improved response times, reduced load on your servers.
&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example.
&lt;/br&gt;
Here, we will be setting 1 day caching TTL for homepage.&lt;/em&gt;&lt;/br&gt;&lt;/p&gt;
&lt;h2 id="prerequisite"&gt;Prerequisite&lt;a class="heading-anchor" href="#prerequisite" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;You must have a domain configured on Nitrogen.&lt;/li&gt;
&lt;li&gt;For this example to work, you should have created URL pattern based condition for homepage &lt;code&gt;^/(\?.*)*$&lt;/code&gt;. If not set, you can refer &lt;a href="https://docs.n7.io/delivery/settings/url-pattern/" &gt;this article&lt;/a&gt;
 for the same.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="steps"&gt;Steps&lt;a class="heading-anchor" href="#steps" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Click on &lt;code&gt;Caching&lt;/code&gt; menu, then select &lt;code&gt;Request Caching&lt;/code&gt; tab. Select appropriate domain from the domains dropdown.
&lt;img src="https://docs.n7.io/assets/images/delivery/caching-and-purge/1.png" alt="Step" &gt;
&lt;/p&gt;</description></item><item><title>Nitrogen purge API</title><link>https://docs.n7.io/delivery/caching/purge-api/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/caching/purge-api/</guid><description>&lt;p&gt;You can integrate purge API in your build script to purge the relevant/changed resource’s cache.
&lt;/br&gt;&lt;/br&gt;
&lt;em&gt;Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example.&lt;/em&gt;
&lt;/br&gt;&lt;/p&gt;
&lt;h2 id="prerequisite"&gt;Prerequisite&lt;a class="heading-anchor" href="#prerequisite" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;You must have a domain configured on Nitrogen.&lt;/li&gt;
&lt;li&gt;You must have caching configured. If not, you can refer &lt;a href="https://docs.n7.io/delivery/caching/caching/" &gt;this article&lt;/a&gt;
 for the same.&lt;/li&gt;
&lt;li&gt;You must have a service account configured with &lt;strong&gt;Editor&lt;/strong&gt; access. If not, you can refer &lt;a href="https://docs.n7.io/account/users/create-api-keys/" &gt;this article&lt;/a&gt;
 for the same.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="steps"&gt;Steps&lt;a class="heading-anchor" href="#steps" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;This involves 2 steps: getting the list of all purge-groups, and then configuring the purge API for the required one.&lt;/br&gt;&lt;/p&gt;</description></item><item><title>Purge logs</title><link>https://docs.n7.io/delivery/caching/purge-logs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/caching/purge-logs/</guid><description>&lt;p&gt;You can see here the logs of the purge activity by your team.&lt;/br&gt;
This can also help you in identifying sudden increase in requests if purge was performed.
&lt;/br&gt;&lt;/br&gt;
*Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example.
&lt;/br&gt;&lt;/p&gt;
&lt;h2 id="prerequisite"&gt;Prerequisite&lt;a class="heading-anchor" href="#prerequisite" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;You must have a domain configured on Nitrogen.&lt;/li&gt;
&lt;li&gt;You should have caching configured. If not, you can refer &lt;a href="https://docs.n7.io/delivery/caching/caching/" &gt;this article&lt;/a&gt;
 for the same.&lt;/li&gt;
&lt;li&gt;You should have performed purge. If not, you can refer &lt;a href="https://docs.n7.io/delivery/caching/purge/" &gt;this article&lt;/a&gt;
 for the same.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="steps"&gt;Steps&lt;a class="heading-anchor" href="#steps" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Click on &lt;code&gt;Caching&lt;/code&gt; menu, then select &lt;code&gt;Purge Logs&lt;/code&gt; tab. Select appropriate domain from the domains dropdown.&lt;br/&gt;
&lt;img src="https://docs.n7.io/assets/images/delivery/caching-and-purge/11.png" alt="Step" &gt;
&lt;br/&gt;&lt;/p&gt;</description></item><item><title>Purge cache</title><link>https://docs.n7.io/delivery/caching/purge/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.n7.io/delivery/caching/purge/</guid><description>&lt;p&gt;Please follow these steps to purge Nitrogen cache for the required resources.
&lt;/br&gt;&lt;/br&gt;
*Note: For demo purpose, we will be using &lt;code&gt;www.nviztest.com&lt;/code&gt; domain as an example.
&lt;/br&gt;&lt;/p&gt;
&lt;h2 id="prerequisite"&gt;Prerequisite&lt;a class="heading-anchor" href="#prerequisite" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;You must have a domain configured on Nitrogen.&lt;/li&gt;
&lt;li&gt;You should have caching configured. If not, you can refer &lt;a href="https://docs.n7.io/delivery/caching/caching/" &gt;this article&lt;/a&gt;
 for the same.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="steps"&gt;Steps&lt;a class="heading-anchor" href="#steps" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Click on &lt;code&gt;Caching&lt;/code&gt; menu, then select &lt;code&gt;Purge Cache&lt;/code&gt; tab. Select appropriate domain from the domains dropdown.&lt;/p&gt;</description></item></channel></rss>