try {
$value = Cache::get('something');
if (Fuel::$env !== Fuel::PRODUCTION) {
throw new CacheNotFoundException;
}
} catch (CacheNotFoundException $e) {
...
}
It looks like you're new here. If you want to get involved, click one of these buttons!