false as the third parameter of
Nice\Application constructor will disable
caching. The cache directory will be null if caching is disabled, which can be checked
in your own code.
<?php use Nice\Application; // ... $app = new Application('prod', true, false); // Caching is disabled; the Cache Directory is null. assert($app->getCacheDir() === null); // or by calling isCacheEnabled assert($app->isCacheEnabled() === false);
Additionally, the following parameters are available:
trueif caching should be enabled,
app.cache_dirwill be the path to the cache directory, or
nullif caching should be disabled.
Tip: For further information on actually using the cache, see the Cache extension documentation.
Knowing what's going on with your application is key. Configure logging to get the details on what your application is up to.
Powered by Codex 1.1.0