improved Mojo::Cache to allow caching to be disabled (closes #682)