Здравствуйте, решил кеширование ключить в кохане, но выдало ошибку.
Открываю
bootstrap.php
в нем где маршутизация
в начале маршрутизации
if ( ! Route::cache()) {
и после
//Route::cache(TRUE);
}
если убрать слешики, //Route::cache(TRUE);
то выдает ошибку.
В чем проблема?
так же в бутстрапе добавил эти строки
'cache_dir' => APPPATH.'cache',
'caching' => false
правда не знаю нужны ли они.
Exception [ 0 ]: Serialization of 'Closure' is not allowed
SYSPATH/classes/kohana/core.php [ 926 ]
921 // Set permissions (must be manually set to fix umask issues)
922 chmod($dir, 0777);
923 }
924
925 // Force the data to be a string
926 $data = serialize($data);
927
928 try
929 {
930 // Write the cache
931 return (bool) file_put_contents($dir.$file, $data, LOCK_EX);
SYSPATH/classes/kohana/core.php [ 926 ] » serialize(arguments)
SYSPATH/classes/kohana/route.php [ 159 ] » Kohana_Core::cache(arguments)
APPPATH/bootstrap.php [ 238 ] » Kohana_Route::cache(arguments)
DOCROOT/index.php [ 102 ] » require(arguments)