Options

service needs a restart to get new object?

wakestarwakestar Member Posts: 207
edited 2012-03-28 in NAV Three Tier
Hi there

We are developing in nav 2009 r2 classic. Sometimes it happens that we have to restart the nav server because it's still using the old (.net) objects. That means that the changes made are not available in RTC ... but in Classic Client it works... so you never know ... is it because the RTC has an old object... or did we code something which is not working correctly with RTC.

Any experience?

Comments

  • Options
    EgnazEgnaz Member Posts: 111
    I can't test it in the moment but have you tried to set the MetadataProviderCacheSize to 0 ?

    You can find it in your CustomSettings.config from the service tier.

    <!--
    Sets the Metadata Provider cache size (in number in objects cached).
    Set to 0 to disable cache.
    -->
    <add key="MetadataProviderCacheSize" value="150"></add>

    At the moment I can't confirm if it works. When you can test it please let us know if it works.

    Regards,
    egnaz
  • Options
    deV.chdeV.ch Member Posts: 543
    I had the same problem and setting this meta cache to 0 solved it for me! thanks!
  • Options
    lapelape Member Posts: 18
    Yes it works but what's the reason for this?
    Setting the cache size to 0 causes bad performance
  • Options
    EgnazEgnaz Member Posts: 111
    To set the cache to 0 is only useful in development phase. It's the same like the old "Object Cache" in C/Side Client. Without cache the client is forced to get the object right from the server and not from local cache. So performance is bad but you can be sure that the object is the latest version from the server.
Sign In or Register to comment.