Limit cache clear to Main and Server Thread.