Alachisoft Ncache configuration issues

橙三吉。 提交于 2019-12-08 19:16:29

Article you followed seems a bit old. A flag enableMinification is missing from <ncContentOptimization> configuration section. Use the following instead:

  <ncContentOptimization>
    <settings viewstateThreshold="12"
              enableViewstateCaching="true"
              enableTrace="false"
              enableMinification="true"
              groupedViewStateWithSessions="false"
              maxViewStatesPerSession="3" >
      <cacheSettings cacheName="myCache">
        <expiration type="Absolute"
                    duration="1" />
      </cacheSettings>
    </settings>
  </ncContentOptimization>

Make sure cacheName specified in cacheSetting attribute ('myCache' in above case) is running and accessible from application server. By default 'myCache' is a local cache created with NCache installation.

If NCache Server is installed on a separate machine and remote client is installed on application server(as guided in NCache getting started video), make sure cache is running and remote client is added as client node with cache; using NCache Manager. Also in such case cache must be a clustered cache and recommended to have name different than 'myCache' (since remote client has its own local cache named 'myCache'). Specify this cache's name in <ncContentOptimization> section.

I hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!