Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
95db3172
Commit
95db3172
authored
Feb 12, 2021
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support caching in development environment
parent
ab9552f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
config/environments/development.rb
config/environments/development.rb
+7
-1
No files found.
config/environments/development.rb
View file @
95db3172
...
@@ -11,7 +11,13 @@ Rails.application.configure do
...
@@ -11,7 +11,13 @@ Rails.application.configure do
# Show full error reports and disable caching
# Show full error reports and disable caching
config
.
active_record
.
verbose_query_logs
=
true
config
.
active_record
.
verbose_query_logs
=
true
config
.
consider_all_requests_local
=
true
config
.
consider_all_requests_local
=
true
config
.
action_controller
.
perform_caching
=
false
if
Rails
.
root
.
join
(
'tmp'
,
'caching-dev.txt'
).
exist?
config
.
action_controller
.
perform_caching
=
true
config
.
action_controller
.
enable_fragment_cache_logging
=
true
else
config
.
action_controller
.
perform_caching
=
false
end
# Show a warning when a large data set is loaded into memory
# Show a warning when a large data set is loaded into memory
config
.
active_record
.
warn_on_records_fetched_greater_than
=
1000
config
.
active_record
.
warn_on_records_fetched_greater_than
=
1000
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment