You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "Michael P. Jung" <su...@gmail.com> on 2004/09/14 15:12:48 UTC

Speedup the Default Publication by factor 2.

Hi,

I recently stuck my nose into the depths of Lenya and found a simple
but effective way to speedup the Default Publication by factor 2.
Applying this patch by hand shouldn't give you any problems. (Don't
forget to replace the {../2} by {.../../2} when surrounding the
<map:transform/> by a new <map:match/>.)

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=31217
http://nagoya.apache.org/eyebrowse/ReadMsg?listName=lenya-dev@cocoon.apache.org&msgNo=5658

Hope that helps to speed up your sites! :-)


Greetings,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Speedup the Default Publication by factor 2.

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Michael P. Jung wrote:
> AH> - maybe it makes sense to have a live menu in certain web
> AH>    applications
> 
> I don't think that a menu for live/** makes sense. It is only used for
> managing the website - In case of a public editable website (e.g.
> wiki) it could make sense, but not for the default publication.

in which case people would simply log in to the authoring area

-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Speedup the Default Publication by factor 2.

Posted by "Michael P. Jung" <su...@gmail.com>.
AH> - maybe it makes sense to have a live menu in certain web
AH>    applications

I don't think that a menu for live/** makes sense. It is only used for
managing the website - In case of a public editable website (e.g.
wiki) it could make sense, but not for the default publication.


Greetings,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: about lenya

Posted by Andreas Hartmann <an...@apache.org>.
narasimhareddy avula wrote:
> 
> hi..this is reddy.,
>  
> this is *most urgent...*

Some hints:

- don't send HTML mails to the list
- don't use words like "urgent"
- don't emphasize unimportant parts of the mail

Otherwise you'll create negative feelings towards you
which won't help you in any case.

Regarding your question:

Start reading the Cocoon and Lenya documentation,
try out the samples and post more specific questions
on this list.

Good luck,
-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


publish a web page.

Posted by narasimhareddy avula <a_...@yahoo.com>.
hi...
 
hwo to publish a web page using lenya.?
 
 
--------------------
A B


		
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

Re: about lenya

Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Wed, 15 Sep 2004, narasimhareddy avula wrote:

> how to configure my web application using lenya..plz help me in
> this reagrad

Can you be more specific?

-- 
JP



---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: about lenya

Posted by narasimhareddy avula <a_...@yahoo.com>.
hi..this is reddy.,
 
this is most urgent...
 
i installed tomcat and apache and also i installed lenya in my system.
 
how to configure my web application using lenya..plz help me in this reagrad
 
 
regards.,
reddy.


		
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

about lenya

Posted by narasimhareddy avula <a_...@yahoo.com>.
hi.. everybody...
 
can anyone help me on the following issues.,
 
i am new to lenya...
 
how can i develop a webapplication using lenya?
 
 
can we chage a existing static web site into content management site(or dynamic)?
 
 
u can send me the personal mail or to group.
 
thanks.,
regard.,
Reddy.a.b.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Speedup the Default Publication by factor 2.

Posted by Andreas Hartmann <an...@apache.org>.
Michael Wechner wrote:
> Thanks very much for the patch. I haven applied it within the 
> BRANCH_1_2_X and the trunk, whereas the same patch could be applied to 
> all the other publications.  Maybe we could generalize this somehow.
> Anyone an idea?


The problem about this approach is, that you somehow hardcode
the menu assignment:

authoring -> menu
live      -> no menu

I don't think this is appropriate:

- the concept of areas is very limited when it comes to
   menu assignment

- maybe it makes sense to have a live menu in certain web
   applications


I'd rather base the choice between menu / no menu on some configuration.

ATM it looks like follows:

global-sitemap.xmap

       <!-- Lenya page transformation -->
       <!-- lenya-page/{publication-id}/{complete-area}/... -->
       <map:match pattern="lenya-page/*/*/**">
       	<map:generate src="cocoon:/menu-xml/{1}/{2}/{3}"/>

Unfortunately we can't evaluate the result of the menu-xml request,
because this happens when the pipeline is already set up.

I imagine something like

   <map:match pattern="lenya-page/*/*/**">

     <!-- check if menu should be used -->
     <map:select type="???">
       <map:when test="true">
         ... generate complex menu stylesheet ...
       </map:when>
       <map:otherwise>
         <map:generate src="xslt/copy-stylesheet.xsl"/>
         <map:serialize type="xml"/>
       </map:otherwise>
     </map:select>

   </map:match>

The question is what we should select by the selector ...
Any ideas?

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Speedup the Default Publication by factor 2.

Posted by Michael Wechner <mi...@wyona.com>.
Thanks very much for the patch. I haven applied it within the 
BRANCH_1_2_X and the trunk, whereas the same patch could be applied to 
all the other publications. Maybe we could generalize this somehow. 
Anyone an idea?

Thanks

Michi

Michael P. Jung wrote:

>Hi,
>
>I recently stuck my nose into the depths of Lenya and found a simple
>but effective way to speedup the Default Publication by factor 2.
>Applying this patch by hand shouldn't give you any problems. (Don't
>forget to replace the {../2} by {.../../2} when surrounding the
><map:transform/> by a new <map:match/>.)
>
>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=31217
>http://nagoya.apache.org/eyebrowse/ReadMsg?listName=lenya-dev@cocoon.apache.org&msgNo=5658
>
>Hope that helps to speed up your sites! :-)
>
>
>Greetings,
>Michael
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>
>  
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org