maintenance toggle with automatic cache purging