LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   How to clear apache cache (https://www.linuxquestions.org/questions/suse-opensuse-60/how-to-clear-apache-cache-787068/)

s_linux 02-04-2010 02:33 PM

How to clear apache cache
 
Hi all

Any one have an idea How to clear apache cache without restarting apache server.

Thanks

anomie 02-04-2010 02:37 PM

Meaning what? You're using mod_cache?

What OS / Apache version?

s_linux 02-04-2010 02:47 PM

The web pages are not displaying correctly as it is in the directories every time we updating the directories with new content. I'm not sure we are using mod_cache. How can we tell that mod_cache is being used?
we have suse 10 and apache 2.2
Thanks

anomie 02-04-2010 03:00 PM

I see what you mean. If you're not sure about mod_cache, then you're probably not using it. You can double check with:

# httpd -M

Actually, unless you have evidence to indicate otherwise, I think what you are describing is a client-side issue. Have your user(s) reload their browser, quit/restart their browser, or clear their browser cache if necessary.

s_linux 02-04-2010 03:05 PM

With httpd -M command, it says command not found.
Intially we thougt the issue with client side and we cleared temp/cache/restart browser/reboot the system/delete history..but it doesnot help.
Thats the reson I want to see if we can delete cache on apache server if it exists.
It would also be great if can you think of any other thing causing the issue.

thanks

anomie 02-04-2010 03:27 PM

Maybe Suse names the Apache web server binary differently. I am not sure.

Could by any (or none) of:
# httpd -M
# apache -M
# apache22 -M

You need to be logged in as root with his full PATH (e.g.: su -) in order for that to work.

It would be a good idea to familiarize yourself with Suse's Apache 2.2 package, and where it keeps various files. Once you have done that, you should begin troubleshooting by watching Apache's access log. Are client requests going to the places you're expecting? etc.


All times are GMT -5. The time now is 12:38 PM.