Multiple cache configuration can conflict #6028

12 views
Skip to first unread message

francky06l

unread,
Nov 20, 2007, 2:50:21 AM11/20/07
to CakePHP Bleeding Edge
Hello,

I was wondering why I got all the warnings and the cake_core_path
cache were containing only Array.
I just start a blank app and this one does not have problem.
After investigating I found out the problem, in my core.php I have 3
cache configuration, and the last definition has got "serialize" =>
false.
This was the problem, in __loadBootstrap the cache::setting is called
and merge to build the '_cake_core' configuration.
Because my last configuration had the serialize => false, my
_cake_core inherit of this serialize => false, this explain the
content of my cached cake_core_path file.

The solution was to move this particular cache definition at first
place, the last one having the serialize => true and then it's ok.

I also have the Auth component now complaining about the User model is
not found. I will keep searching.

francky06l

unread,
Nov 20, 2007, 2:16:20 PM11/20/07
to CakePHP Bleeding Edge
I found the solution for the User model, in db_acl.php line 130 :

this :if (!App::import($name)) {

should be : if (!App::import('model', $name)) {

when modifying this, everything seems fine (I haven't tested
everything yet)...
Reply all
Reply to author
Forward
0 new messages