Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-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 9144517A26 for ; Mon, 28 Sep 2015 12:39:42 +0000 (UTC) Received: (qmail 75090 invoked by uid 500); 28 Sep 2015 12:39:42 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 75026 invoked by uid 500); 28 Sep 2015 12:39:42 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 75015 invoked by uid 99); 28 Sep 2015 12:39:42 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2015 12:39:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C0B6E1809BB for ; Mon, 28 Sep 2015 12:39:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.429 X-Spam-Level: ** X-Spam-Status: No, score=2.429 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id B17HHMS13BLH for ; Mon, 28 Sep 2015 12:39:41 +0000 (UTC) Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id BADEF439B3 for ; Mon, 28 Sep 2015 12:39:40 +0000 (UTC) Received: by igbkq10 with SMTP id kq10so54247491igb.0 for ; Mon, 28 Sep 2015 05:39:34 -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=gMCWnKRrl7tnKMnLezDCTVRaEwXV9i23dq1lM6dig+s=; b=gwHgOk4wQtLdjwAbPHj8ZE0YVR2O3eZTNt4pfM00Dy5EKiyl+ZzT5Dga2ldMY8nd7l WdZyu1DHZ8dh7Qno4hMXl6IcDt0RZ9JHKWJQSwAocPf5cggxwcHRjFdURy8nH02YhZ2M iG8+XMaCu8A2q0O2XnhD4VrpCv0wtTOi8sufQAbc4zNExk7px0Fd9eZw/COcBpE1cBvC vvrf8DNYu2T0naZ3mSzA8bvEoBpOb5w9ZcYzhjhr6tqn5wczgiKaSAqEnaLVD2zNciXd r2maC0h19L/8zSF3cZoU7644yjNcYUn+T5CivghP7GWT/JKNAhTkJOHOK+FaPTCPdXwP Y8Lw== MIME-Version: 1.0 X-Received: by 10.50.79.230 with SMTP id m6mr16197744igx.14.1443443974554; Mon, 28 Sep 2015 05:39:34 -0700 (PDT) Received: by 10.36.116.148 with HTTP; Mon, 28 Sep 2015 05:39:34 -0700 (PDT) In-Reply-To: References: Date: Mon, 28 Sep 2015 07:39:34 -0500 Message-ID: Subject: Re: Purge Question From: Jeremy Payne To: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary=089e01229aaa5b49720520cdfd3f --089e01229aaa5b49720520cdfd3f Content-Type: text/plain; charset=UTF-8 BTW, the reason I mention using my own genid in lua, is because I dont see access to 'proxy.config.http.cache.generation' in the lua plugin code. Maybe that config over-ride will be added to the Lua plugin in the near future. On Mon, Sep 28, 2015 at 7:22 AM, Jeremy Payne wrote: > > > James.. I'll test the genid configuration option. I'll also test writing a > lua script that takes from both the regex_reval and genid plugins. > In this per remap lua script, Ill open a rule file/db The file/db will > contain a list of regex's and a genid. Upon matching, the lua script > will set the cache key with respect to the corresponding genid. I think > when I define my paths/regexes to match, I will use Unix time > as my gendid. > > Thanks all for the responses and suggestions. > > > > On Sat, Sep 26, 2015 at 11:19 PM, James Peach wrote: > >> >> If you want to get more creative, you could use the Lua plugin to crack >> the generation ID based on some arbitrary criteria. >> >> >> >> >> > --089e01229aaa5b49720520cdfd3f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
BTW, the reason I mention using my own genid in lua, is be= cause I dont see access to=C2=A0 'proxy.config.http.ca= che.generation' in the lua plugin code. Maybe that config over-r= ide will be added to the Lua plugin in the near future.



=C2= =A0

On Mon, Sep 28, 2015 at 7:22 AM, Jeremy Payne <jp557198@= gmail.com> wrote:


James.. I'll test the genid configurat= ion option. I'll also test writing a lua script that takes from both th= e regex_reval and genid plugins.
=C2=A0In this per remap lua = script, Ill open a rule file/db The file/db will contain a list of regex= 9;s and a genid. Upon matching, the lua script
will set the c= ache key with respect to the corresponding genid. I think when I define my = paths/regexes to match, I will use Unix=C2=A0 time
as my gen= did.

Thanks all for the responses and suggestions.



On Sat, Sep 26, 2015 at 11:19 PM, James Peach <jpeach@apa= che.org> wrote:

If you want to get more creative, you could use the Lua plugin to cr= ack the generation ID based on some arbitrary criteria.






--089e01229aaa5b49720520cdfd3f--