Skip to main content
1-Visitor
June 22, 2012
Question

Clearing the Apache Cache Automatically? **SOLVED**

  • June 22, 2012
  • 3 replies
  • 920 views

Hi guys,


I was on the phone with PTC support earlier and they mentioned something about creating a job that clears out all the Apache cache. Do you all know of something that can do this on a weekly basis?


Thanks for all the help. I have modified the supplied BAT file and made it my own. Thanks!

    3 replies

    23-Emerald III
    June 22, 2012
    Create a batch file that stops Apache, deletes the folder, then restarts Apache.

    Thank you,

    Ben H. Loosli
    USEC, INC.
    1-Visitor
    June 22, 2012
    On 2012-06-22 16:06, Andy Delk wrote:
    > Hi guys,
    >
    > I was on the phone with PTC support earlier and they mentioned
    > something about creating a job that clears out all the Apache cache.
    > Do you all know of something that can do this on a weekly basis?
    >

    There should be a "htcacheclean" that can do this for you. It can even
    run as a daemon so it's all done automagically without any need to look
    at it ever again. That's what I read anyway:
    1-Visitor
    June 22, 2012
    It is a simple task to accomplish... and I should add this to my backups routine.

    My issue is, why is this something I get from hearsay from PTC support. I had a Hotline guy tell me it should be done daily... And his tone was that I was an idiot for not having this in my everyday routine..... but I have never seen that documented. It wasn't taught in the Systems Admin class.