| @@ -212,9 +212,12 @@ | ||
| 212 | 212 | * Run performances cleaner. |
| 213 | 213 | * Should run every week. |
| 214 | 214 | */ |
| 215 | 215 | static::$crontabSimulator->schedule(new VBOCrontabRunnerAware('performance_cleaner', 60 * 60 * 24 * 7, function(VBOCrontabLogger $logger) { |
| 216 | + // performance cleaning check | |
| 216 | 217 | VBOPerformanceCleaner::runCheck(); |
| 218 | + // clean up expired passcodes from smart locks | |
| 219 | + VBOFactory::getDoorAccessControl()->cleanExpiredPasscodes(); | |
| 217 | 220 | })); |
| 218 | 221 | |
| 219 | 222 | /** |
| 220 | 223 | * Run the door-access-control framework. |