Return-Path: X-Original-To: apmail-incubator-allura-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB23E10A36 for ; Mon, 21 Oct 2013 17:09:44 +0000 (UTC) Received: (qmail 59829 invoked by uid 500); 21 Oct 2013 17:09:43 -0000 Delivered-To: apmail-incubator-allura-dev-archive@incubator.apache.org Received: (qmail 59805 invoked by uid 500); 21 Oct 2013 17:09:41 -0000 Mailing-List: contact allura-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-dev@incubator.apache.org Received: (qmail 59791 invoked by uid 99); 21 Oct 2013 17:09:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 17:09:39 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 76.96.62.32 is neither permitted nor denied by domain of dave@brondsema.net) Received: from [76.96.62.32] (HELO qmta03.westchester.pa.mail.comcast.net) (76.96.62.32) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 17:09:33 +0000 Received: from omta05.westchester.pa.mail.comcast.net ([76.96.62.43]) by qmta03.westchester.pa.mail.comcast.net with comcast id fqVs1m0140vyq2s53t9DfG; Mon, 21 Oct 2013 17:09:13 +0000 Received: from b.local ([199.116.53.69]) by omta05.westchester.pa.mail.comcast.net with comcast id ft731m00Z1VbcSn3Rt76l2; Mon, 21 Oct 2013 17:07:11 +0000 Message-ID: <52655F37.5060608@brondsema.net> Date: Mon, 21 Oct 2013 13:07:03 -0400 From: Dave Brondsema User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: "allura-dev@incubator.apache.org" Subject: ideas for caching wiki pages, etc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1382375353; bh=mqcoh16zOJ3vN5nnkRANoLV9x3FtICtO2JgTFBB3GS4=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=b+e4syHCcagrSHMQ1OJHv0gum8wzmpTvvPOlHFQNB43qUSl6nBOB0qElPYkIkSw8X m7oysLde1vqVd7e2uUlz8BnLkzkoMZ6kNCTuYKWTrgGISU79OyAr/NiXAowVUXz5Zy Ef5WCMig0VutI7xWUPP4y29tkUQ9/0iRd2OrtoDYKu3/3YoGLkMFO6pWmiMm0fmGg/ zPUmX/tR9tz1MyPTMZxp1TPMLKDobL10F/MM+QO6PijSoHJ0oskPoyI9av5LXB2fFk 6xvnpUmZvAcO0dERyJYoigp1wIcHg72sEpOXsfrIGZm7P84ylkQXOcJECuVwcOOxOA WVPFyumiU5AtA== X-Virus-Checked: Checked by ClamAV on apache.org I'd like to address https://sourceforge.net/p/allura/tickets/6207/ soon. The summary is that we currently have a max char size for rendering markdown, since sometimes it can be extremely slow to render (and we've tried to improve that with no luck). A max char size is ugly though and we don't want that. We added caching for markdown rendering recently, but have only applied it to comments ("posts") so far. If we expand it to wiki pages, tickets, etc, then the max char limit can be removed or made much much higher. But it's more likely that a macro (e.g. include another page) will be used in wiki and tickets and then our simple caching strategy won't work well because the macro won't be re-run. Anyone have ideas for how to do cache invalidation in that situation? One idea I have is pretty crude, but might work: check to see if there are any macros in the markdown (search '[[') and never cache those. -- Dave Brondsema : dave@brondsema.net http://www.brondsema.net : personal http://www.splike.com : programming <><