Skip to content

Commit cacb1c2

Browse files
author
Michael Babker
committed
Add cache config
1 parent e030dd9 commit cacb1c2

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

administrator/components/com_patchtester/config.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@
2121
description="COM_PATCHTESTER_FIELD_GH_PASSWORD_DESC"
2222
label="COM_PATCHTESTER_FIELD_GH_PASSWORD_LABEL"
2323
/>
24+
25+
<field name="cache" type="radio" class="btn-group" default="1"
26+
description="COM_PATCHTESTER_FIELD_CACHE_DESC"
27+
label="COM_PATCHTESTER_FIELD_CACHE_LABEL" >
28+
<option value="1">JYES</option>
29+
<option value="0">JNO</option>
30+
</field>
31+
32+
<field name="cache_lifetime" type="password" default="60"
33+
description="COM_PATCHTESTER_FIELD_CACHE_LIFETIME_DESC"
34+
label="COM_PATCHTESTER_FIELD_CACHE_LIFETIME_LABEL"
35+
/>
2436
</fieldset>
2537

2638
<fieldset name="permissions" description="JCONFIG_PERMISSIONS_DESC" label="JCONFIG_PERMISSIONS_LABEL">

administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ COM_PATCHTESTER_COMPONENT_DESC="Joomla! Patch Tester Configuration Values"
1313
COM_PATCHTESTER_COMPONENT_LABEL="Joomla! Patch Tester"
1414
COM_PATCHTESTER_CONFIGURATION="Joomla! Patch Tester Settings"
1515
COM_PATCHTESTER_CONFLICT_S="The patch could not be applied because it conflicts with a previously applied patch: %s"
16+
COM_PATCHTESTER_FIELD_CACHE_DESC="Enabling caching will save the GitHub data locally for the specified time"
17+
COM_PATCHTESTER_FIELD_CACHE_LABEL="Enable Caching"
18+
COM_PATCHTESTER_FIELD_CACHE_LIFETIME_DESC="The amount of time (in minutes) before the cache is reset"
19+
COM_PATCHTESTER_FIELD_CACHE_LIFETIME_LABEL="Cache Lifetime"
1620
COM_PATCHTESTER_FIELD_GH_PASSWORD_LABEL="GitHub Account Password"
1721
COM_PATCHTESTER_FIELD_GH_PASSWORD_DESC="Password for the account entered in the "_QQ_"GitHub Account"_QQ_" field"
1822
COM_PATCHTESTER_FIELD_GH_USER_LABEL="GitHub Account"

0 commit comments

Comments
 (0)