<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Time delay between record creation and being available]]></title><description><![CDATA[<p dir="auto">What is the acceptable time delay for a record to be available via a get functions after this record has been created in an AppDrag database?</p>
]]></description><link>https://community.appdrag.com/topic/526/time-delay-between-record-creation-and-being-available</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 08:24:02 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/526.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Nov 2020 13:20:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Time delay between record creation and being available on Fri, 04 Dec 2020 20:27:19 GMT]]></title><description><![CDATA[<p dir="auto">As Joseph mentioned, a get function gets cached for 30 seconds. Based on tip from Wassim; I now add a random number which force refreshes the get.</p>
<p dir="auto">I made the following function, which probably can be simplified quite a lot <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--wink" title=";-)" alt="😉" /></p>
<pre><code>function refresh() {
        let params = (new URL(document.location)).searchParams;
        let id = params.get("id");
        let d = new Date();
        let urlrefresh = window.location.href.split('?')[0] + "?id=" + id + "&amp;uc=" + d.getSeconds() + d.getMilliseconds();
        location.replace(urlrefresh);
    }
</code></pre>
<p dir="auto">The idea behind this, is that I add a random &amp;uc[number] behind the url.</p>
<p dir="auto">Thanks Wassim!</p>
]]></description><link>https://community.appdrag.com/post/2132</link><guid isPermaLink="true">https://community.appdrag.com/post/2132</guid><dc:creator><![CDATA[Dick Honing]]></dc:creator><pubDate>Fri, 04 Dec 2020 20:27:19 GMT</pubDate></item><item><title><![CDATA[Reply to Time delay between record creation and being available on Mon, 30 Nov 2020 07:28:30 GMT]]></title><description><![CDATA[<p dir="auto">If you link to products?id=<strong>newproductid</strong> you can't have cache for this id, so this should work fine.<br />
If you encouter cache issues maybe you can provide us links to pages / functions so we can investigate <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f575.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--sleuth_or_spy" title=":sleuth_or_spy:" alt="🕵" /></p>
]]></description><link>https://community.appdrag.com/post/2036</link><guid isPermaLink="true">https://community.appdrag.com/post/2036</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Mon, 30 Nov 2020 07:28:30 GMT</pubDate></item><item><title><![CDATA[Reply to Time delay between record creation and being available on Sun, 29 Nov 2020 14:02:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/1">@jbenguira</a> thanks for letting me know. And uh ... can perhaps point me in the right direction on how to change my web page logic, as ../.products?id=123 is no longer  going to work ... right?</p>
]]></description><link>https://community.appdrag.com/post/2029</link><guid isPermaLink="true">https://community.appdrag.com/post/2029</guid><dc:creator><![CDATA[Dick Honing]]></dc:creator><pubDate>Sun, 29 Nov 2020 14:02:10 GMT</pubDate></item><item><title><![CDATA[Reply to Time delay between record creation and being available on Sun, 29 Nov 2020 11:52:09 GMT]]></title><description><![CDATA[<p dir="auto">Maybe your request to get the data from db is a GET method, in that case there is a 30 sec cache on all GET.</p>
<p dir="auto">If you want to avoid that configure your api function in POST instead, there is zero cache on POST</p>
]]></description><link>https://community.appdrag.com/post/2026</link><guid isPermaLink="true">https://community.appdrag.com/post/2026</guid><dc:creator><![CDATA[jbenguira]]></dc:creator><pubDate>Sun, 29 Nov 2020 11:52:09 GMT</pubDate></item><item><title><![CDATA[Reply to Time delay between record creation and being available on Fri, 27 Nov 2020 18:16:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/2">@Wassim</a> yes, I have a case where there's an occasionally delay. Mostly it's instant, but unfortunately not always. I even built a separate routine for temporarily storing the data as I can't seem to rely on this.</p>
]]></description><link>https://community.appdrag.com/post/2020</link><guid isPermaLink="true">https://community.appdrag.com/post/2020</guid><dc:creator><![CDATA[Dick Honing]]></dc:creator><pubDate>Fri, 27 Nov 2020 18:16:48 GMT</pubDate></item><item><title><![CDATA[Reply to Time delay between record creation and being available on Fri, 27 Nov 2020 14:38:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/190">@Dick-Honing</a> said in <a href="/post/2018">Time delay between record creation and being available</a>:</p>
<blockquote>
<p dir="auto">What is the acceptable time delay for a record to be available via a get functions after this record has been created in an AppDrag database?</p>
</blockquote>
<p dir="auto">Hi,</p>
<p dir="auto">There is no delay. As soon as it's written in the database, it can be fetch.<br />
Did you have a case in which you thought there was a delay?</p>
]]></description><link>https://community.appdrag.com/post/2019</link><guid isPermaLink="true">https://community.appdrag.com/post/2019</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Fri, 27 Nov 2020 14:38:39 GMT</pubDate></item></channel></rss>