LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-27-2006, 03:11 AM   #1
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Rep: Reputation: 15
Unhappy Disable Cache ??


How to disable Cache in apache server.
i'm try to configure the httpd conf..
to disable cache for example in mod_disk_cache.c

"CacheEnable httpd://www.example.org"

it still not working??

Can you give the correct example to disabale the cache??
 
Old 11-27-2006, 10:14 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by Ameii83
How to disable Cache in apache server.
i'm try to configure the httpd conf..
to disable cache for example in mod_disk_cache.c

"CacheEnable httpd://www.example.org"

it still not working??

Can you give the correct example to disabale the cache??
Did you even read up on the proper syntax to use?

Try:

Code:
CacheEnable disk http://www.example.org
You need to specify the cache_type in order for it to work properly.

Code:
Syntax:	CacheEnable cache_type url-string
More info here: http://httpd.apache.org/docs/2.2/mod/mod_cache.html

And always remember to restart apache after making changes to the config in order for those changes to take affect.
 
Old 11-27-2006, 08:38 PM   #3
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Original Poster
Rep: Reputation: 15
Exclamation worng info : CacheDisable not CacheEnable

Sorry for the wrong syntax..that i'm giving in the first mail

What i'm using now is CacheDisable http://www.example.org not a "CacheEnable"

The added line that i use in the httpd.conf is

CacheDisable http://www.example.org

sorry for wrong info. back to the old question

it still not working??

Can you give the correct example to disable the cache??
 
Old 11-27-2006, 08:39 PM   #4
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Original Poster
Rep: Reputation: 15
Exclamation wrong info : CacheDisable not CacheEnable

Sorry for the wrong syntax..that i'm giving in the first mail

What i'm using now is CacheDisable http://www.example.org not a "CacheEnable"

The added line that i use in the httpd.conf is

CacheDisable http://www.example.org

sorry for wrong info. back to the old question

it still not working??

Can you give the correct example to disable the cache??
 
Old 11-28-2006, 07:04 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by Ameii83
Sorry for the wrong syntax..that i'm giving in the first mail

What i'm using now is CacheDisable http://www.example.org not a "CacheEnable"

The added line that i use in the httpd.conf is

CacheDisable http://www.example.org

sorry for wrong info. back to the old question

it still not working??

Can you give the correct example to disable the cache??
So is mod_cache loading when apache starts? Are you restarting Apache after making changes?
 
Old 11-28-2006, 08:12 PM   #6
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Original Poster
Rep: Reputation: 15
yup, i have restarted the apache after i add all this line

Quote:
<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot "/var/cache/mod_proxy"
CacheSize 256
CacheDirLevels 5
CacheDirLength 3
</IfModule>

<IfModule mod_mem_cache.c>
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
</IfModule>

# When acting as a proxy, don't cache the list of security updates
CacheDisable http://www.example.org/Updates

# it will check the origin server by 5 seconds
CacheMaxExpire 5
</IfModule>

Last edited by Ameii83; 11-28-2006 at 09:19 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how-to disable cache squid paul_mat Linux - Networking 2 12-21-2005 11:32 PM
clear or disable file cache acristescu Linux - General 3 11-04-2005 10:25 AM
I had to disable the L2 external cache (512 K) pistachio Linux - Hardware 2 07-30-2005 12:19 PM
Is it possible to disable the disk cache? sunsfcn Linux - Software 3 07-15-2005 09:20 PM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 04:32 AM


All times are GMT -5. The time now is 06:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration