Fixed the timeout on unused resources

The CACHE_TIME was used as milliseconds but documented as seconds.
This changes the timeout from 60 milliseconds to 30 seconds.

It may take up to 40 seconds for resources to be cleaned up, since
the cleanup happens every 10 seconds.