Tuesday, May 29, 2012

Re: Cake becomes super-slow when loading assets from Plugins

i forgot to say i'm usign Cake 2.2.0-RC1 on a Win7 server

Il giorno martedì 29 maggio 2012 09:51:28 UTC+2, Ernesto ha scritto:
Hi all!

i noticed that Cake gets very, very slow (about 50x times slower) if i load assets from Plugins.

Here's my layout code

<head>
<?php
echo $this->Html->charset();
echo "<title>". $title ."</title>";
echo $this->Html->meta("icon");
echo $this->Html->css(array(
"generic",
$this->layout ."/form",
$this->layout ."/menu",
$this->layout ."/top",
"/". $this->request->plugin ."/css/". $this->layout //this css gives troubles
));
?>
</head>
<body>
<div id='wrapper'>
<div id='top'>
<?php 
echo $this->Menu->output();
echo "<div id='title'>". $title ."</div>";
echo $this->Azioni->output();
?>
</div>
<div id='content'><?php echo $this->fetch("content"); ?></div>
</div>
</body>
</html>

Am i doing something wrong?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: