<?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>topic Re: Is there a way to clear cache before opening online CSV link in JMP? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-clear-cache-before-opening-online-CSV-link-in/m-p/15036#M13942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can't fix the PHP script, you can add a parameter to the URL, something like "&amp;amp;random=" || char(randominteger(1,9999999))&lt;/P&gt;&lt;P&gt;Assuming "random" isn't a parameter the PHP script knows about, PHP won't care, but the cache will see a different URL and you'll get fresh data.&lt;/P&gt;&lt;P&gt;You could use today(), if you wait more than a second, rather than random.&amp;nbsp; Just something without spaces or special characters that changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 20:12:18 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2015-10-27T20:12:18Z</dc:date>
    <item>
      <title>Is there a way to clear cache before opening online CSV link in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-clear-cache-before-opening-online-CSV-link-in/m-p/15033#M13939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database that allows for CSVs to be imported directly into JMP using the 'Open()' command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Consolas;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000dd; font-size: 10pt; font-family: Consolas;"&gt;Open&lt;/SPAN&gt;&lt;SPAN style="; font-size: 10pt; font-family: Consolas;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Consolas;"&gt;&lt;A href="http://.../csv.php?..."&gt;&lt;SPAN style="color: #000080; text-decoration: underline;"&gt;http://.../csv.php?...&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; text&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had great success with this, but I have noticed that after the first run, JMP caches the initial dataset and I need to close and re-open JMP for the data to be extracted again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there was a way to force JMP to clear cache and extract from url each run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:51:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-clear-cache-before-opening-online-CSV-link-in/m-p/15033#M13939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-26T21:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to clear cache before opening online CSV link in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-clear-cache-before-opening-online-CSV-link-in/m-p/15034#M13940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not 100% sure this is what you want.&amp;nbsp; But 'clear globals();' and 'clear symbols();' will remove any variable associations.&amp;nbsp; And wait(0) will reset the cache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be as simple as 'close(dt,nosave);'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 17:56:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-clear-cache-before-opening-online-CSV-link-in/m-p/15034#M13940</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2015-10-27T17:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to clear cache before opening online CSV link in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-clear-cache-before-opening-online-CSV-link-in/m-p/15035#M13941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from &lt;A href="http://php.net/manual/en/function.header.php" title="http://php.net/manual/en/function.header.php"&gt;PHP: header - Manual&lt;/A&gt; I don't know if this will fix it, but suspect it might.&amp;nbsp; If you are in control of the PHP script, give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_macro_quote jive_text_macro"&gt;&lt;PRE __jive_macro_name="quote" class="jive_macro_quote jive_text_macro"&gt;&lt;P style="margin: 0 0 1.5rem; color: #333333; font-family: 'Fira Sans', 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; background-color: #f2f2f2;"&gt;Example #2 Caching directives&lt;/P&gt;&lt;P style="margin: 0 0 1.5rem;"&gt;PHP scripts often generate dynamic content that must not be cached by the client browser or any proxy caches between the server and the client browser. Many proxies and clients can be forced to disable caching with:&lt;/P&gt;&lt;P class="example-contents" style="margin-bottom: 1.5rem; color: #333333; font-family: 'Fira Sans', 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: 16px; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;DIV class="phpcode" style="padding: 0.75rem;"&gt;&lt;CODE style="font-size: 0.875rem; font-family: 'Fira Mono', 'Source Code Pro', monospace;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #0000bb;"&gt;&amp;lt;?php&lt;BR /&gt;header&lt;/SPAN&gt;&lt;SPAN style="color: #007700;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #dd0000;"&gt;"Cache-Control: no-cache, must-revalidate"&lt;/SPAN&gt;&lt;SPAN style="color: #007700;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #ff8000;"&gt;// HTTP/1.1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000bb;"&gt;header&lt;/SPAN&gt;&lt;SPAN style="color: #007700;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #dd0000;"&gt;"Expires: Sat, 26 Jul 1997 05:00:00 GMT"&lt;/SPAN&gt;&lt;SPAN style="color: #007700;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #ff8000;"&gt;// Date in the past&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000bb;"&gt;?&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 18:48:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-clear-cache-before-opening-online-CSV-link-in/m-p/15035#M13941</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2015-10-27T18:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to clear cache before opening online CSV link in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-clear-cache-before-opening-online-CSV-link-in/m-p/15036#M13942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can't fix the PHP script, you can add a parameter to the URL, something like "&amp;amp;random=" || char(randominteger(1,9999999))&lt;/P&gt;&lt;P&gt;Assuming "random" isn't a parameter the PHP script knows about, PHP won't care, but the cache will see a different URL and you'll get fresh data.&lt;/P&gt;&lt;P&gt;You could use today(), if you wait more than a second, rather than random.&amp;nbsp; Just something without spaces or special characters that changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 20:12:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-clear-cache-before-opening-online-CSV-link-in/m-p/15036#M13942</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2015-10-27T20:12:18Z</dc:date>
    </item>
  </channel>
</rss>

