Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22F7DCAE5 for ; Tue, 18 Jun 2013 23:11:45 +0000 (UTC) Received: (qmail 89156 invoked by uid 500); 18 Jun 2013 23:11:42 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 89133 invoked by uid 500); 18 Jun 2013 23:11:42 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 89125 invoked by uid 99); 18 Jun 2013 23:11:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 23:11:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of icicimov@gmail.com designates 209.85.215.170 as permitted sender) Received: from [209.85.215.170] (HELO mail-ea0-f170.google.com) (209.85.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jun 2013 23:11:37 +0000 Received: by mail-ea0-f170.google.com with SMTP id h10so2854243eaj.15 for ; Tue, 18 Jun 2013 16:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=LETwuji4N/FZfpU5s+MDFyUp0cFEcze/7G0ShzXSUDY=; b=JCTCt4xOfuceVHFOLXRuwAkew6CVx/TY76OPVnUsxdz5w8iF7wH4Ul3FkLtoWSLWlt nQTtzTvTJRMtUxLCTDXWI86l0EdHEg0AMUZwwz9nd78BM4VTakU1lG8T4bxg57U25WiA CTeBRUPOjTU44b9zNYdB8hml6p3fCG6O8FiQTGKtG1XMdTSHSeRHiIOXlQ/TYPKYZlas k0XrBYR4gYlp8BPFzGrNmr+Df+CoS9Cxu0Ri8dxQJ27FxOwlkZ1fhbMEAtiIzlMlB5UH C6MaH1zYo8IH+t2rxgNmsI+7PHliLYchEIM7uq1LiR3uVaFC8vW6nBHN+V2/gqRLc41p Kbbg== MIME-Version: 1.0 X-Received: by 10.14.213.135 with SMTP id a7mr23649507eep.152.1371597076745; Tue, 18 Jun 2013 16:11:16 -0700 (PDT) Received: by 10.223.43.204 with HTTP; Tue, 18 Jun 2013 16:11:16 -0700 (PDT) Received: by 10.223.43.204 with HTTP; Tue, 18 Jun 2013 16:11:16 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Jun 2013 09:11:16 +1000 Message-ID: From: Igor Cicimov To: users Content-Type: multipart/alternative; boundary=047d7b621c7288fc8404df75d401 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Disk Cache with multiple virtual hosts --047d7b621c7288fc8404df75d401 Content-Type: text/plain; charset=ISO-8859-1 On 18/06/2013 5:21 PM, "Paul Beckett" wrote: > > I've read the Apache 2.4 caching guide, mod_cache and mod_cache_disk pages, but am unsure whether I need a unique CacheRoot for each virtual host, or whether multiple virtual hosts can/should share the same CacheRoot? > > Also I'm thinking of setting the CacheRoot to be a tmpfs mount (effectively a ramdisk that will page out to swap space if theres not enough ram to cache everything). Why not mem cache then? Why would you bother with ramdisk if you want to cache in memory? If I'm using a unique CacheRoot (a sub-directory in the tmpfs mount), is there anyway to configure Apache to create the CacheRoot directory if it doesn't already exist? If anyone has any thoughts / recommendations / tips in this regards to this approach I would be grateful to here them. > > Thanks, > Paul --047d7b621c7288fc8404df75d401 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On 18/06/2013 5:21 PM, "Paul Beckett" <paul_beckett@outlook.com> wrote:
>
> I've read the Apache 2.4 caching guide, mod_cache and mod_cache_di= sk pages, but am unsure whether I need a unique CacheRoot for each virtual = host, or whether multiple virtual hosts can/should share the same CacheRoot= ?
>
> Also I'm thinking of setting the CacheRoot to be a tmpfs mount (ef= fectively a ramdisk that will page out to swap space if theres not enough r= am to cache everything).

Why not mem cache then? Why would you bother with ramdisk if= you want to cache in memory?

If I'm using a unique CacheRoot (a sub-directory in the= tmpfs mount), is there anyway to configure Apache to create the CacheRoot = directory if it doesn't already exist? If anyone has any thoughts / rec= ommendations / tips in this regards to this approach I would be grateful to= here them.
>
> Thanks,
> Paul

--047d7b621c7288fc8404df75d401--