Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
0
Merge Requests
0
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
converse.js
Commits
236c24a3
Commit
236c24a3
authored
Aug 14, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better variable name
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
64e6d6ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
weblate/trans/admin_views.py
weblate/trans/admin_views.py
+7
-7
No files found.
weblate/trans/admin_views.py
View file @
236c24a3
...
@@ -96,19 +96,19 @@ def performance(request):
...
@@ -96,19 +96,19 @@ def performance(request):
'production-indexing'
,
'production-indexing'
,
))
))
# Check for sane caching
# Check for sane caching
cache
=
settings
.
CACHES
[
'default'
][
'BACKEND'
].
split
(
'.'
)[
-
1
]
cache
s
=
settings
.
CACHES
[
'default'
][
'BACKEND'
].
split
(
'.'
)[
-
1
]
if
cache
in
[
'MemcachedCache'
,
'DatabaseCache'
]:
if
cache
s
in
[
'MemcachedCache'
,
'DatabaseCache'
]:
# We consider these good
# We consider these good
cache
=
True
cache
s
=
True
elif
cache
in
[
'DummyCache'
]:
elif
cache
s
in
[
'DummyCache'
]:
# This one is definitely bad
# This one is definitely bad
cache
=
False
cache
s
=
False
else
:
else
:
# These might not be that bad
# These might not be that bad
cache
=
None
cache
s
=
None
checks
.
append
((
checks
.
append
((
_
(
'Django caching'
),
_
(
'Django caching'
),
cache
,
cache
s
,
'production-cache'
,
'production-cache'
,
))
))
# Avatar caching
# Avatar caching
...
...
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