<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article QRS API: Delete management cache in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/QRS-API-Delete-management-cache/ta-p/1769725</link>
    <description>&lt;P&gt;Qlik Sense Repository Service (QRS) entire cache can be purged by calling the below QRS API end-point.&amp;nbsp; This will force the QRS to re-evaluate all the results and might be noticed on performance and response times while the cache is rebuilt. It is recommended to only use this when advised by Qlik Support as part of troubleshooting.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;&lt;SPAN&gt;DELETE /qrs/internal/management/cache/&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;The rules cache is local to a Qlik Sense node. To reset the QRS rule cache on all nodes, the API must be called on each node.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The API call&amp;nbsp;&lt;U&gt;must&lt;/U&gt;&amp;nbsp;be run as the user&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Internal\sa_repository&lt;/STRONG&gt;. Qlik Sense client certificates&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;must&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;be used for authentication when calling QRS API as&amp;nbsp;&lt;I&gt;Internal\sa_repository&lt;/I&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;Call QRS API locally on Qlik Sense node&amp;nbsp;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Export-client-certificate-and-root-certificate-to-make-API-calls/ta-p/1715515" target="_blank" rel="noopener" data-cke-saved-href="/articles/Basic/Export-client-certificate-and-root-certificate-to-make-API-calls"&gt;Export client certificate and root certificate to make API calls&lt;/A&gt;&amp;nbsp;to a client machine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example on how to reset QRS security cache with PowerShell;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;$qlikserver = 'qlikserver1.domain.local'

$cert = Get-ChildItem -Path "Cert:\CurrentUser\My" | Where {$_.Subject -like '*QlikClient*'}
$xrfkey = "iX83QmNlvu8x9yAB"

$url = "https://$($qlikserver):4242&lt;SPAN&gt;/qrs/internal/management/cache&lt;/SPAN&gt;?xrfkey=$($xrfkey)"
$headers = @{}
$headers.Add("X-Qlik-xrfkey","$xrfkey")
$headers.Add("X-Qlik-User","UserDirectory=INTERNAL;UserId=sa_repository")

Invoke-RestMethod -Uri $url -Method Delete -ContentType 'application/json' -Headers $headers -Certificate $cert&lt;/PRE&gt;
&lt;P&gt;Confirm in Audit_Repository logs that cache has been clear on a specific Qlik Sense node. Looks for a message referring to "Invalidating" followed by the type of cache being removed, like one of the below examples;&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;Invalidating User cache&lt;BR /&gt;Invalidating SecurityFilterResult cache&lt;BR /&gt;Invalidating ExtensionSchema cache&lt;BR /&gt;Invalidating SystemRule cache&lt;BR /&gt;Invalidating CustomPropertyDefinition cache&lt;/PRE&gt;
&lt;H4 id="toc-hId--537810890"&gt;References&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Reference-Redirect.htm" target="_blank" rel="noopener nofollow noopener noreferrer" data-cke-saved-href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Reference-Redirect.htm"&gt;Qlik Sense for developers: Qlik QRS API reference&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId--537810890"&gt;Related Articles&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/QRS-API-Reset-security-rule-cache-using-PowerShell/ta-p/1769717" target="_self"&gt;QRS API: Reset security rule cache using PowerShell&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId-1949701943"&gt;Environment&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise on&amp;nbsp;Windows June 2017 and later&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 06:43:17 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2020-12-21T06:43:17Z</dc:date>
    <item>
      <title>QRS API: Delete management cache</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/QRS-API-Delete-management-cache/ta-p/1769725</link>
      <description>&lt;P&gt;Qlik Sense Repository Service (QRS) entire cache can be purged by calling the below QRS API end-point.&amp;nbsp; This will force the QRS to re-evaluate all the results and might be noticed on performance and response times while the cache is rebuilt. It is recommended to only use this when advised by Qlik Support as part of troubleshooting.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;&lt;SPAN&gt;DELETE /qrs/internal/management/cache/&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;The rules cache is local to a Qlik Sense node. To reset the QRS rule cache on all nodes, the API must be called on each node.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The API call&amp;nbsp;&lt;U&gt;must&lt;/U&gt;&amp;nbsp;be run as the user&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Internal\sa_repository&lt;/STRONG&gt;. Qlik Sense client certificates&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;must&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;be used for authentication when calling QRS API as&amp;nbsp;&lt;I&gt;Internal\sa_repository&lt;/I&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;Call QRS API locally on Qlik Sense node&amp;nbsp;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/Export-client-certificate-and-root-certificate-to-make-API-calls/ta-p/1715515" target="_blank" rel="noopener" data-cke-saved-href="/articles/Basic/Export-client-certificate-and-root-certificate-to-make-API-calls"&gt;Export client certificate and root certificate to make API calls&lt;/A&gt;&amp;nbsp;to a client machine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example on how to reset QRS security cache with PowerShell;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;$qlikserver = 'qlikserver1.domain.local'

$cert = Get-ChildItem -Path "Cert:\CurrentUser\My" | Where {$_.Subject -like '*QlikClient*'}
$xrfkey = "iX83QmNlvu8x9yAB"

$url = "https://$($qlikserver):4242&lt;SPAN&gt;/qrs/internal/management/cache&lt;/SPAN&gt;?xrfkey=$($xrfkey)"
$headers = @{}
$headers.Add("X-Qlik-xrfkey","$xrfkey")
$headers.Add("X-Qlik-User","UserDirectory=INTERNAL;UserId=sa_repository")

Invoke-RestMethod -Uri $url -Method Delete -ContentType 'application/json' -Headers $headers -Certificate $cert&lt;/PRE&gt;
&lt;P&gt;Confirm in Audit_Repository logs that cache has been clear on a specific Qlik Sense node. Looks for a message referring to "Invalidating" followed by the type of cache being removed, like one of the below examples;&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;Invalidating User cache&lt;BR /&gt;Invalidating SecurityFilterResult cache&lt;BR /&gt;Invalidating ExtensionSchema cache&lt;BR /&gt;Invalidating SystemRule cache&lt;BR /&gt;Invalidating CustomPropertyDefinition cache&lt;/PRE&gt;
&lt;H4 id="toc-hId--537810890"&gt;References&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Reference-Redirect.htm" target="_blank" rel="noopener nofollow noopener noreferrer" data-cke-saved-href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Reference-Redirect.htm"&gt;Qlik Sense for developers: Qlik QRS API reference&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId--537810890"&gt;Related Articles&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/QRS-API-Reset-security-rule-cache-using-PowerShell/ta-p/1769717" target="_self"&gt;QRS API: Reset security rule cache using PowerShell&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 id="toc-hId-1949701943"&gt;Environment&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense Enterprise on&amp;nbsp;Windows June 2017 and later&lt;/LI&gt;
&lt;/UL&gt;
&lt;P style="font-style: italic;"&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 06:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/QRS-API-Delete-management-cache/ta-p/1769725</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2020-12-21T06:43:17Z</dc:date>
    </item>
  </channel>
</rss>

