I got it!

The problems was in the plugin. It force to use no layout and this
make no cache. I've added /app/plugins/rss/views/layouts/rss.thtml
with this simple code

   <?php echo $content_for_layout; ?>

and then in /app/plugins/rss/controllers/rss_controller.php I've
substituted line 86 from

   $this->layout = '';

to

   $this->layout = 'rss';

Now cache is caching. However now there's what I think to be a little
bug in cache component. If I have to cache a stream like

   <?xml version="1.0" encoding="ISO-8859-1"?>
   <!-- generator="FeedCreator 1.7.2-ppt ([EMAIL PROTECTED])" -->
   <rss version="2.0">
       <channel>
           <title>Localhost:...

it will be generated a file like

01   <!--cachetime:1180623951--><?php
                        if (!class_exists('AppController')) {
                  ...
                                        }
                                        ?><?xml version="1.0" 
encoding="ISO-8859-1"?>
41   <!-- generator="FeedCreator 1.7.2-ppt ([EMAIL PROTECTED])" -->
      <rss version="2.0">
          <channel>
              <title>Localhost:...

and as you see at line 41 the <?xml will generate an error in server
that interpret <? as a php starting statement.

Which would be the best way to solve this? However I'm still
investigating.

Thanks in advance
Davide






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to