Preparations
Create entries in SystemCache table (values in VarName and Data columns doesn't matter), where:
- LifeTime = -1 + Timestamp is any number of seconds ago
- LifeTime = -1 + Timestamp is in the future
- LifeTime = 15 + Timestamp is more than 15 seconds ago
- LifeTime = 15 + Timestamp is more than 15 seconds from now
Test Plan
- login to Admin Console
- rebuild unit config cache to add new scheduled task
- run added scheduled task
- confirm, that:
- records with LifeTime = -1 are not removed no matter the Timestamp column value
- records where Timestamp + Cached is in the past were removed