You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2005/12/07 18:06:48 UTC
Re: [PATCH] 1.4: make /index.html non-caching to immediately show
new pubs.
Jörn Nettingsmeier wrote:
> hi !
>
> the problem: when using the "new publication" usecase link in 1.4, a
> publication is created, but the index.html page is only updated after a
> manual reload, which is highly confusing to new users, since there is no
> clue that the creation worked.
Thank you very much for your patch!
Would you mind filing a bug report and attaching the patch, so that
its history is preserved?
-- Andreas
> suggested fix (thanks to andreas hartmann for help):
>
> diff -u build/lenya/webapp/lenya/xslt/util/welcome.xsl-old
> build/lenya/webapp/lenya/xslt/util/welcome.xsl
> --- build/lenya/webapp/lenya/xslt/util/welcome.xsl-old 2005-12-07
> 17:49:52.000000000 +0100
> +++ build/lenya/webapp/lenya/xslt/util/welcome.xsl 2005-12-07
> 17:45:24.000000000 +0100
> @@ -29,6 +29,8 @@
> <page:page>
>
> <page:title>Apache Lenya - Content Management System</page:title>
> + <xhtml:meta http-equiv="cache-control" content="no-cache"/>
> + <xhtml:meta http-equiv="pragma" content="no-cache"/>
> <page:body>
> <xsl:apply-templates select="xhtml:div[@class = 'lenya-frontpage']"/>
> <xsl:apply-templates select="lenya:publications"/>
>
> best,
>
> jörn
>
>
> ------------------------------------------------------------------------
>
> --- build/lenya/webapp/lenya/xslt/util/welcome.xsl-old 2005-12-07 17:49:52.000000000 +0100
> +++ build/lenya/webapp/lenya/xslt/util/welcome.xsl 2005-12-07 17:45:24.000000000 +0100
> @@ -29,6 +29,8 @@
> <page:page>
>
> <page:title>Apache Lenya - Content Management System</page:title>
> + <xhtml:meta http-equiv="cache-control" content="no-cache"/>
> + <xhtml:meta http-equiv="pragma" content="no-cache"/>
> <page:body>
> <xsl:apply-templates select="xhtml:div[@class = 'lenya-frontpage']"/>
> <xsl:apply-templates select="lenya:publications"/>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org