Clarity

  • 1.  Flushing the cache

    Posted Dec 09, 2009 09:30 AM
    Hi,  I just read a thread about flushing the cache on the application server where it talks about 2 commands "Flush" and "Flush All".  We had an issue longtime back when data was saved on the project page it wouldnt get saved and would throw an error. This was fixed by fluhing the Cache. Appreciate if someone could ellaborate on the steps on How to do this.  Will a restart of all the niku services fix this issue.    Thanks in advanceKarthik


  • 2.  Re: Flushing the cache

    Posted Dec 09, 2009 09:56 AM
    Yes, restarting the APP services will refresh the app caches.  But the "Flush" caches buttons are on an undocumented page;   http:// yourserverhere /niku/app?action= security.caches        


  • 3.  Re: Flushing the cache

    Posted Dec 09, 2009 12:29 PM
    Are there any downsides to "flushing all" Caches?   Does this interrupt user sessions?


  • 4.  Re: Flushing the cache

    Posted Dec 09, 2009 10:56 PM
    No it should not - it might slow down the first few user sessions while the cache "rebuilds", thats all.    


  • 5.  Re: Flushing the cache

    Posted Dec 10, 2009 02:12 AM
    In laymans terms:  The way I understand it cache is in memory to reduce or eliminate the time it takes to read from disc.If the item needed is in cache the access time is much shorter than to access is from the disc (with memory  the speed reference  value  is usually nano seconds and with disc micro seconds).If the item is not in the cache it has to be read from the disc.If a user is working with an item it is usually loaded to the memory of the workstation.Sometimes the item in the cache is not uptodate and the user gets an error when trying to do somtething.Flushing the cache is the way to force read from disc. It is not going to flush the workstation memory.When the services are restarted or started during boot the cache starts building from scratch which takes some time.Warm up scripts are used in some cases to manipulated such data that is needed in the anticipated use eg demo on a slow system.  Martti K.


  • 6.  Re: Flushing the cache

    Posted Dec 10, 2009 05:41 AM
    Hi,  if   you have not done the below then do it otherwise ignore...  Schedule to  stop / start the services daily  during system freeze / Non usuage time so  that would free up locks,clear caches.  cheers,sundar


  • 7.  RE: Re: Flushing the cache

    Posted Jun 02, 2010 01:17 PM
    Do any one has script to Flush the memory, so that we can schedule it, if needed....(instead of going through URL and flushing it)