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