The problem is that the file is created by the value of $this->here
and if that is the same as cacheAction or in the array of
cacheAction.  Then when hitting the site the same url has to be used.
The easiest solution off the top of my head is to use mod_rewrite to
force ^$  and ^/$  to go to your custom controller/action

RewriteRule ^$   index.php?url=/mycontroller/myaction [QSA,L]
RewriteRule ^/$  index.php?url=/mycontroller/myaction [QSA,L]

# everything else below


I have not tried it but hope it helps,

David Lloyd
--
lloydhome consulting
http://lloydhome.com


On Feb 20, 6:51 pm, "PaulV" <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> I am trying to improve the performance of loading my home page by
> turning on view caching in Cake Stable: 1.1.13.4450
>
> My home page (e.g. at http://<myurl>/) is routed to a custom
> controller using the following in routes.php
>
>         $Route->connect('/', array('controller' => 'pub', 'action' =>
> 'index', ''));
>
> where I have a custom controller "pub_controller.php" with a custom
> action "index" and the appropriate CACHE_CHECK global and cacheAction
> variables have been set.
>
> When I visit the home page, no file gets created in the tmp/cache/
> views directory. If I visit other URLs, a cache file is created (eg. I
> visit pub/index as above).
>
> Can someone let me know how I can solve this problem?
>
> Thanks,
>    Paul


--~--~---------~--~----~------------~-------~--~----~
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