candyblue / kirby3-garbage-collector
Clean up expired sessions with a cronjob.
Fund package maintenance!
lukas-becker.eu
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:kirby-plugin
Requires
README
This plugin provides a script, which cleans up expired sessions. You can run it periodically with a cronjob.
Installation
composer require candyblue/kirby3-garbage-collector
Usage
- You need to disable the automatic garbage collector in your Kirby config:
<?php
return [
'session' => [
'gcInterval' => false
]
];
- You can define a custom pattern for the garbage collector script in your Kirby config.
<?php
return [
'candyblue.kirby3-garbage-collector' => [
pattern => 'your-custom-pattern'
]
];
The default pattern is: 82525kfqeqdtskpn
.
3. You need to create a cronjob, which triggers your pattern.