php-fpm 720 B

1234567891011121314
  1. # /etc/cron.d/php@PHP_VERSION@: crontab fragment for PHP
  2. # This purges session files in session.save_path older than X,
  3. # where X is defined in seconds as the largest value of
  4. # session.gc_maxlifetime from all your SAPI php.ini files
  5. # or 24 minutes if not defined. The script triggers only
  6. # when session.save_handler=files.
  7. #
  8. # WARNING: The scripts tries hard to honour all relevant
  9. # session PHP options, but if you do something unusual
  10. # you have to disable this script and take care of your
  11. # sessions yourself.
  12. # Look for and purge old sessions every 30 minutes
  13. 09,39 * * * * root [ -x /usr/lib/php/sessionclean-fpm ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean-fpm; fi