Make appcache size check actually match what goes in the cache section. Fixes #1847.