Oh, yes. The file is there and gets re-created if I delete it.
Looking in the file I can also see the path set for dispatcher.php.

I echoed and echoed for a while... want to know what caused the cache
to be ignored? :)

I'd say this is one for the Cookbook:
You can't have an App::import() in your bootstrap.php file. If you do
then App will try to read the cache before the cache is configured and
that messes things up. When dispatcher is requested the cache is
available but since there already is an instance of App loaded (with
the empty cache) it is that instance that is used throughout the
request.

Sunday wisdom: Keep App::import() out of your configuration directory.
In my case, sticking it at the top of app_controller.php worked just
as well.

/Martin



On Feb 20, 11:47 pm, Matt Curry <[email protected]> wrote:
> Sounds like you might have a permissions issue.  Is the
> cake_core_file_map file getting created?
>
> On Feb 20, 2:12 pm, Martin Westin <[email protected]> wrote:
>
> > No so on my computer, which is why I thought it was strange.
> > (Mac OS X)
>
> > On Feb 20, 5:37 pm, majna <[email protected]> wrote:
>
> > > There is no "Not found" when debug = 0, after cake_core_file_map file
> > > is created.
> > > Refresh page one more time..
>
> > > 2009/2/20 Martin Westin <[email protected]>:
>
> > > > I see plenty of "not found" at debug level 0... which is strange.
>
> > > > If anyone is at all interested, there is a way to optimize this,
> > > > tedious and dirty. For example:
>
> > > > in cake/bootstrap.php
>
> > > > //App::import('Core', array('Dispatcher'));
> > > > App::import('Core',
> > > > 'Dispatcher',true,CAKE_CORE_INCLUDE_PATH.DS.'cake'.DS);
>
> > > > By specifying the path you tell import to look in the right folder and
> > > > the file will be found on the first try.
>
> > > > On Feb 20, 4:41 pm, majna <[email protected]> wrote:
> > > >> Tnx Matt.
> > > >> I think this is not expected behavior anyway.
>
> > > >> On Feb 20, 4:30 pm, Matt Curry <[email protected]> wrote:
>
> > > >> > The file paths get cached in /app/tmp/cache/persistent/
> > > >> > cake_core_file_map.  Set debug to 0 in your core.php and re-run.
> > > >> > You'll see all the files found on the first try.
>
> > > >> > -Matthttp://www.pseudocoder.com
>
> > > >> > On Feb 20, 8:38 am, majna <[email protected]> wrote:
>
> > > >> > > You can see my report here:  http://bin.cakephp.org/view/442110052
> > > >> > > There is *too much* wrong paths where cake searches core files.
> > > >> > > In real application it gets even worse (including behavior.php 
> > > >> > > etc).
> > > >> > > Am I doing something wrong? Cake founds dispatcher.php on 50th
> > > >> > > attempt!?
> > > >> > > Please can someone confirm this as a bug?
>
> > > >> > > To reproduce:
> > > >> > > 1. Setup clean Cake install.
> > > >> > > 2. Edit cake/libs/configure.php
>
> > > >> > > Add to App:: __load($file) to echo out what  PHP's "file_exists"
> > > >> > > returns:
> > > >> > > if (file_exists($file)) {
> > > >> > >         echo  'Found : '.$file."<br />";
> > > >> > >         ...other code}else{
>
> > > >> > >         echo 'Not found : '.$file."<br />";
>
> > > >> > > }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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