• Flush the AOS cache from code


    Well while working on a current project an associate of mine, partner in crime on the current project named Ed (from Stream Line), shared with me a very nice little trick.

    You see we had two AOSes that we needed to flush the cache, but could not stop and start the AOSes. The only way I have ever known to flush the AOS is to stop and start it. Well Ed showed me a nice little trick. You may or may not be aware of three menu action items that can be used to flush system data, the AOD, and dictionary. The thing about these though is that they are set to run at "called from" which when ran clear the client cache.

    Well the trick is to copy these three menu items, and then change the run from property to server. Now you can launch these menu items, and they will run on the server, therefore clearing the AOD, sys data, and dictionary, causing a refresh.

    So the three menu items that you copy (don't change the real deals) are:
    [Under Menu items > Action]

    • 1. SysFlushAOD
    • 2. SysFlushData
    • 3. SysFlushDictionary

    This is a nice little trick that we should all keep in our bags. Thanks Ed for sharing, and check back soon for more helpful post.

  • 相关阅读:
    WPF自定义加载控件
    C# 动态调用Webservice
    C#程序执行Python脚本
    C#监控U盘插拔
    WPF—编程宝典P1
    详解S7源码3-COTP and TPKT
    详解S7源码(1)----Types
    详解S7源码2----Conversition
    P18 FlipPanel控件的讲解
    WPF编程宝典P18----ColorPicker 和FlipPanel的讲解
  • 原文地址:https://www.cnblogs.com/Jinnchu/p/2659942.html
Copyright © 2020-2023  润新知