I have configured my siting using the core.php options as follows:
Configure::write('Cache.disable', false);
Configure::write('Cache.check', true);
Cache::config('default', array('engine' => 'File','duration'=> 3600,
'probability'=> 100,'path' => '/cake_tmp','prefix' =>
'mathew3d_','lock' => false,serialize' => false));
Caching works but not as I was expecting.
When I visit my website files are created in the /cake_tmp/cache/views
folder.
For the action "home" there is a file called "home.php", but it does
not have the prefix "mathew3d_" in the file name.
The file size for the home.php is very large and when I view the
contents it is clearly serializing all the variables at the top of the
cached file. Where as I have it disabled. If I edit the contents of
the file and delete all the php code at the top of the file. I reduce
the file size by 80% and the speed of viewing that page greatly
improves.
I need help fixing this.
How can I disable serializing for view caches? which is most
important.
The prefix name missing only concerns me that Cake isn't using my
configuration.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---