Jump to content
Sign in to follow this  
iwato

How does one implement htcacheclean manually?

Recommended Posts

BACKGROUND:  I have recently discovered a file on my test server that opens to the wrong file.  Not only does this same phenomenon appear in different browsers, but clearing the browsers' cache and rebooting the computer does not help.  It has been suggested by two of my colleagues that the problem lies with the Apache cache.  Although I have discovered something called htcacheclean on the Apache website, nowhere have I been able to find instructions about how to implement this instruction properly.  i want simply to clean one URL from the cache, but am baffled about how to implement what I have already learned.

QUESTION ONE:  Is it not possible to run htcacheclean from the UNIX terminal?

QUESTION ONE:  Whether it is possible or not, how does one go about doing it?

Source:  htcacheclean

Edited by iwato

Share this post


Link to post
Share on other sites

That page describes it as a program you can run manually via the terminal, or as a daemon.  The page lists all of the options you can use when you run it.

Share this post


Link to post
Share on other sites

I know well what the page says.  What I do not know is how to implement it.  There are no sample commands, and what I have tried does not work.

$ sudo htcacheclean //Any option written after this fails.

$ sudo apachectl htcacheclean //Any option write after this fails.

What I obtain from these trials is simply a list of htcacheclean options.  The list is similar, but not the same as what are provided in the Apache source document.  Still, no sample code.

Roddy

Share this post


Link to post
Share on other sites

You're saying that when you try to run it, it will print a list of usable options?

Share this post


Link to post
Share on other sites

Yes.  In other words, it is telling me that it is there, but that I am not employing it properly.

Share this post


Link to post
Share on other sites

Well, then in that case the documentation doesn't matter and whatever the program is telling you is the final word.  Maybe it's a different version than what the online documentation describes.

Share this post


Link to post
Share on other sites

Not really.  In both cases it is documentation.  Although it may be more likely that documentation included with the code is more current than documentation that is external to the code, either could be neglected with regard to an update of the code.  Still, there is no sample code, and the implementation of htcacheclear on the UNIX terminal is unclear.

Share this post


Link to post
Share on other sites

There's no code involved, this is just a program you run.  The options that are available when running it should be given in the help for the program.

Share this post


Link to post
Share on other sites

This is what I thought too, but it does not appear to run.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×