Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
5af87666
Commit
5af87666
authored
7 years ago
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cache stats in admin
parent
cbeac855
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
qa-lang-admin.php
qa-include/lang/qa-lang-admin.php
+2
-2
admin-default.php
qa-include/pages/admin/admin-default.php
+13
-0
No files found.
qa-include/lang/qa-lang-admin.php
View file @
5af87666
...
...
@@ -62,8 +62,8 @@ return array(
'caching_dir_error'
=>
'The directory ^ defined as QA_CACHE_DIRECTORY is not writable by the web server.'
,
'caching_dir_missing'
=>
'Cache directory has not been defined.'
,
'caching_dir_public'
=>
'The directory ^ defined as QA_CACHE_DIRECTORY must be outside the public root.'
,
'caching_
disk_size'
=>
'Total size of
cache'
,
'caching_
num_files'
=>
'Number of files
'
,
'caching_
num_items'
=>
'Number of items in
cache'
,
'caching_
space_used'
=>
'Total size of cache
'
,
'caching_title'
=>
'Caching'
,
'cancel_mailing_button'
=>
'Cancel Mailing'
,
'categories'
=>
'Categories'
,
...
...
This diff is collapsed.
Click to expand it.
qa-include/pages/admin/admin-default.php
View file @
5af87666
...
...
@@ -1801,6 +1801,19 @@ switch ($adminsection) {
'style'
=>
'wide'
,
'fields'
=>
array
(
'cache_files'
=>
array
(
'type'
=>
'static'
,
'label'
=>
qa_lang_html
(
'admin/caching_num_items'
),
'value'
=>
qa_html
(
qa_format_number
(
$cacheStats
[
'files'
])),
),
'cache_size'
=>
array
(
'type'
=>
'static'
,
'label'
=>
qa_lang_html
(
'admin/caching_space_used'
),
'value'
=>
qa_html
(
qa_format_number
(
$cacheStats
[
'size'
]
/
1048576
,
1
)
.
' MB'
),
),
),
'buttons'
=>
array
(
'delete_all'
=>
array
(
'label'
=>
qa_lang_html
(
'admin/caching_delete_all'
),
...
...
This diff is collapsed.
Click to expand it.
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