fix(admin): fixed javascript error on toggle simple cache checkbox

Fixes #6529
Merge pull request #6550 from sembrestels/admin-js-fix

fix(admin): fixed javascript error on toggle simple cache checkbox