Папка кэша codeigniter в полном объеме каждые 2 дняPhp

Кемеровские программисты php общаются здесь
Ответить
Anonymous
 Папка кэша codeigniter в полном объеме каждые 2 дня

Сообщение Anonymous »

У меня есть codeigniter < /p>
CI_VERSION = '3.1.5'
< /code>
И у меня есть это в conting.php < /p>
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_cookie_name' = the name you want for the cookie
| 'sess_expiration' = the number of SECONDS you want the session to last.
| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
| 'sess_expire_on_close' = Whether to cause the session to expire automatically
| when the browser window is closed
| 'sess_encrypt_cookie' = Whether to encrypt the cookie
| 'sess_use_database' = Whether to save the session data to a database
| 'sess_table_name' = The name of the session database table
| 'sess_match_ip' = Whether to match the user's IP address when reading the session data
| 'sess_match_useragent' = Whether to match the User Agent when reading the session data
| 'sess_time_to_update' = how many seconds between CI refreshing Session Information
|
*/
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 0;
$config['sess_expire_on_close'] = TRUE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 3000;
$config['sess_save_path'] = FCPATH . 'application/cache1/';
/*
< /code>
Итак, как вы видите выше, ci_session хранится в папке Chache1
Мне нужно менять путь на sess_save_path каждые 2 дня, потому что он станет полным (около 900 МБ на 1 ГБ), и сайт не будет работать из -за полного диска (как я получил это сообщение об ошибке). Чтобы автоматически удалить папку кеша или ее файлы в нее?
или есть шанс получить работу или чистить эту папку каждый день?
Знаете, что когда я меняю sess_path, все мои клиенты должны были снова войти в систему
Большое спасибо, и надеюсь получить какое -либо решение здесь:) < /p>
Я попытался искать решение, но не сфокусирован с ним:) < /p>
>

Подробнее здесь: https://stackoverflow.com/questions/765 ... ery-2-days
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Php»