On 2/23/06, Xuekun Hu <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to cache some files and don't want them to be removed if the
> cache if full. That's means the cache is serviced as
> first-come-first-service basis. Can I do that by setting
> "CacheDefaultExpire" to a large number?
>
> However I found this sentence "If a new object needs to be inserted in
> the cache and the size of the object is greater than the remaining
> memory, objects will be removed until the new object can be cached.
> The object to be removed is selected using the algorithm specified by
> MCacheRemovalAlgorithm" in docs. So it seems the objects are hard to
> stay in the cache, it has the the chance to be removed out!
>
> Any ideas? Thanks in advance.

It sounds like you may be looking for mod_file_cache.

If not, you may also want to consider using mod_disk_cache in place of
mod_mem_cache, because it allows the OS to be in charge of the memory
caching issues (using the OS buffer cache) and hence will often
outperform mod_mem_cache.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to