caching and htcacheclean

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PaulMelbOz
    New Member
    • Feb 2008
    • 2

    caching and htcacheclean

    Greetings,
    I have just started using Apache at our organisation as a proxy server. I have enabled caching using mod_cache / mod_disk_cache which is working well, however the cache has blown out to 20 GB.

    I have tried to use htcacheclean, however I can not get the server to restart afterwards. A sample of my httpd.conf is below:-

    _______________ _______________ _______________ _____ _____________

    LoadModule cache_module modules/mod_cache.so

    <IfModule mod_cache.c>

    LoadModule disk_cache_modu le modules/mod_disk_cache. so
    # If you want to use mod_disk_cache instead of mod_mem_cache,
    # uncomment the line above and comment out the LoadModule line below.
    <IfModule mod_disk_cache. c>

    CacheRoot I:/Proxy/ApacheCache
    CacheEnable disk /
    CacheDirLevels 5
    CacheDirLength 3
    CacheMaxFileSiz e 128000
    CacheMinFileSiz e 64
    CacheDisable http://au1.aconex.com

    htcacheclean -n -t -p I:/Proxy/ApacheCache -l 10000M

    # switches
    # -n Be nice. This causes slower processing in favour of other processes. #htcacheclean will sleep from time to time so that (a) the disk IO will be #delayed and (b) the kernel can schedule other processes in the meantime.
    # -t Delete all empty directories.
    # -p Path of the root of the cache
    # -l Limit size of cache add B for Bytes, K for Kilobytes and M for Megabytes

    </IfModule>

    _______________ _______________ _______________ _____ _____________

    I am sure I am missing something. Like a LoadModule or a way to call the htcacheclean, but im not sure what. I have done a fairly extensive search and come up with nothing.

    Can anyone set me on the right track on how to sort this out please?

    Regards,

    Paul.
  • PaulMelbOz
    New Member
    • Feb 2008
    • 2

    #2
    ************ I wish to close this question as I have worked out how to make it work... Cheerz.... *************

    Originally posted by PaulMelbOz
    Greetings,
    I have just started using Apache at our organisation as a proxy server. I have enabled caching using mod_cache / mod_disk_cache which is working well, however the cache has blown out to 20 GB.

    I have tried to use htcacheclean, however I can not get the server to restart afterwards. A sample of my httpd.conf is below:-

    _______________ _______________ _______________ _____ _____________

    LoadModule cache_module modules/mod_cache.so

    <IfModule mod_cache.c>

    LoadModule disk_cache_modu le modules/mod_disk_cache. so
    # If you want to use mod_disk_cache instead of mod_mem_cache,
    # uncomment the line above and comment out the LoadModule line below.
    <IfModule mod_disk_cache. c>

    CacheRoot I:/Proxy/ApacheCache
    CacheEnable disk /
    CacheDirLevels 5
    CacheDirLength 3
    CacheMaxFileSiz e 128000
    CacheMinFileSiz e 64
    CacheDisable http://au1.aconex.com

    htcacheclean -n -t -p I:/Proxy/ApacheCache -l 10000M

    # switches
    # -n Be nice. This causes slower processing in favour of other processes. #htcacheclean will sleep from time to time so that (a) the disk IO will be #delayed and (b) the kernel can schedule other processes in the meantime.
    # -t Delete all empty directories.
    # -p Path of the root of the cache
    # -l Limit size of cache add B for Bytes, K for Kilobytes and M for Megabytes

    </IfModule>

    _______________ _______________ _______________ _____ _____________

    I am sure I am missing something. Like a LoadModule or a way to call the htcacheclean, but im not sure what. I have done a fairly extensive search and come up with nothing.

    Can anyone set me on the right track on how to sort this out please?

    Regards,

    Paul.

    Comment

    Working...