NAS Cache delay

IsitarIsitar Member Posts: 29
edited 2015-08-12 in NAV Three Tier
Hello fellow NAV Developers.
I have a NAV 2013 R2 Setup with a running NAS.
The code works fine but the NAS has somehow a Caching delay of around 30 seconds.
The NAS runs in a Loop, the Loop Needs around 3 seconds to process, then it waits ~5 seconds (sleep) until it Loops again.
The Problem is, if I insert a Record in the table, the NAS doesn't get this Record during his first 2 or 3 Loops, after the 4th Loop (so around 30 to 40 seconds) it gets it.
I tried almost everything but it seems like the NAS Caches this table when nothing happened there. If I insert a Record every second, it runs just fine, but if I let it run for a few minutes the Problem occurs.
Is there a way to disable this Caching behavior?
Greetings from Switzerland

Comments

  • BodoBodo Member Posts: 1
    Hi Isitar,

    is your NAS running as a second NAV Server Instance? If so, have a look into the service configuration file (CustomSettings.config):

    <add key="CacheSynchronizationPeriod" value="0:00:30" />

    30 seconds is the default value data will be cached by a NAV Server Instance.

    You can not set this parameter with the Management Console. More info: https://msdn.microsoft.com/en-us/librar ... 0(v=nav.71).aspx

    Regards
    Bodo
Sign In or Register to comment.