caching - Bypass Cache when in Dev Environment -
case scenario:
$dbresult = myeloquentclass::remember(60)->all();
my results being cached, works great production environment.
however, finding myself removing remember
method in development environment since don't want cache database results.
this results in lot of unnecessary removal/additions of code.
is there way bypass cache globally eloquent's remember
when in development environment?
in laravel - 4 edit app/config/local/cache.php file , set driver
array
.
<?php return array( 'driver' => 'array', );
for laravel 5 - edit .env file , set cache_driver
array
cache_driver=array
Comments
Post a Comment