/*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
CredentialsCache::cleanup()
{
// cache entries with expiretime <= expirationTime are to be evicted
- const time_t expirationTime = current_time.tv_sec - Auth::TheConfig.authenticateTTL;
+ const time_t expirationTime = current_time.tv_sec - Auth::TheConfig.credentialsTtl;
const auto end = store_.end();
for (auto i = store_.begin(); i != end;) {
if (!gcScheduled_ && store_.size()) {
gcScheduled_ = true;
eventAdd(cacheCleanupEventName, &CredentialsCache::Cleanup,
- this, Auth::TheConfig.authenticateGCInterval, 1);
+ this, Auth::TheConfig.garbageCollectInterval, 1);
}
}