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
cc379da3
Commit
cc379da3
authored
Mar 17, 2016
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cache category widget
parent
f2b48d31
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
options.php
qa-include/app/options.php
+1
-0
qa-lang-options.php
qa-include/lang/qa-lang-options.php
+1
-0
admin-default.php
qa-include/pages/admin/admin-default.php
+4
-1
qa-widget-category-list.php
qa-include/plugins/qa-widget-category-list.php
+6
-1
No files found.
qa-include/app/options.php
View file @
cc379da3
...
...
@@ -213,6 +213,7 @@
'avatar_q_page_q_size'
=>
50
,
'avatar_store_size'
=>
400
,
'avatar_users_size'
=>
30
,
'caching_catwidget_time'
=>
30
,
'caching_enabled'
=>
0
,
'caching_q_time'
=>
5
,
'caching_qlist_time'
=>
5
,
...
...
qa-include/lang/qa-lang-options.php
View file @
cc379da3
...
...
@@ -45,6 +45,7 @@
'avatar_users_size'
=>
'Avatar size on top users page:'
,
'block_bad_words'
=>
'Censored words - separate by spaces or commas:'
,
'block_ips_write'
=>
'Blocked IP addresses - separate by spaces or commas:'
,
'caching_catwidget_time'
=>
'Cache category widget for:'
,
'caching_enabled'
=>
'Enable caching:'
,
'caching_q_time'
=>
'Cache question pages for:'
,
'caching_qlist_time'
=>
'Cache question lists for:'
,
...
...
qa-include/pages/admin/admin-default.php
View file @
cc379da3
...
...
@@ -73,6 +73,7 @@
'avatar_q_page_q_size'
=>
'number'
,
'avatar_store_size'
=>
'number'
,
'avatar_users_size'
=>
'number'
,
'caching_catwidget_time'
=>
'number'
,
'caching_q_time'
=>
'number'
,
'caching_qlist_time'
=>
'number'
,
'columns_tags'
=>
'number'
,
...
...
@@ -645,11 +646,12 @@
$subtitle
=
'admin/caching_title'
;
$formstyle
=
'wide'
;
$showoptions
=
array
(
'caching_enabled'
,
'caching_q_time'
,
'caching_qlist_time'
);
$showoptions
=
array
(
'caching_enabled'
,
'caching_q_time'
,
'caching_qlist_time'
,
'caching_catwidget_time'
);
$checkboxtodisplay
=
array
(
'caching_q_time'
=>
'option_caching_enabled'
,
'caching_qlist_time'
=>
'option_caching_enabled'
,
'caching_catwidget_time'
=>
'option_caching_enabled'
,
);
break
;
...
...
@@ -1551,6 +1553,7 @@
case
'caching_q_time'
:
case
'caching_qlist_time'
:
case
'caching_catwidget_time'
:
$optionfield
[
'note'
]
=
qa_lang_html_sub
(
'main/x_minutes'
,
''
);
break
;
}
...
...
qa-include/plugins/qa-widget-category-list.php
View file @
cc379da3
...
...
@@ -42,7 +42,12 @@ class qa_category_list
$nav
=
$qa_content
[
'navigation'
][
'cat'
];
}
else
{
$navcategories
=
qa_db_single_select
(
qa_db_category_nav_selectspec
(
null
,
true
,
false
,
true
));
$selectspec
=
qa_db_category_nav_selectspec
(
null
,
true
,
false
,
true
);
$selectspec
[
'caching'
]
=
array
(
'key'
=>
'qa_db_category_nav_selectspec:default:full'
,
'ttl'
=>
qa_opt
(
'caching_catwidget_time'
),
);
$navcategories
=
qa_db_single_select
(
$selectspec
);
$nav
=
qa_category_navigation
(
$navcategories
);
}
...
...
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