Skip to content

Commit

Permalink
Adding readme reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Oct 7, 2013
1 parent 82803c1 commit 807dbe4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,12 @@ You may easily cache the results of a query using the remember method:

$users = User::remember(10)->get();

*From: http://laravel.com/docs/queries#caching-queries*

### Query Logging

By default, Laravel keeps a log in memory of all queries that have been run for the current request. However, in some cases, such as when inserting a large number of rows, this can cause the application to use excess memory. To disable the log, you may use the `disableQueryLog` method:

DB::connection()->disableQueryLog();

*From: http://laravel.com/docs/database#query-logging*

0 comments on commit 807dbe4

Please sign in to comment.