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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -