Skip to content

Commit 6872a73

Browse files
committed
Cache Web Informer widget for 10 mins
See #343
1 parent 658b4af commit 6872a73

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/templates/forms/misc/ads_webinformer.txp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<txp:php>
1+
<txp:etc_cache id="webinformer" time="-600"><txp:php>
22
if (!gps('txpreview')) {
33
$opts = array('http' => array('timeout' => 1.6));
44
$url = 'https://website.informer.com/widget/textpattern.com-2';
@@ -9,4 +9,4 @@ if (!gps('txpreview')) {
99
echo $widget;
1010
}
1111
}
12-
</txp:php>
12+
</txp:php></txp:etc_cache>

src/templates/forms/misc/language_table.txp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<txp:etc_cache id="crowdin-api" time="-3600">
2-
<txp:php>
1+
<txp:etc_cache id="crowdin-api" time="-3600"><txp:php>
32
$key = parse('<txp:yield name="api-key" />');
43

54
try {
@@ -48,5 +47,4 @@ echo <<<EOHTML
4847
</table>
4948
</div>
5049
EOHTML;
51-
</txp:php>
52-
</txp:etc_cache>
50+
</txp:php></txp:etc_cache>

0 commit comments

Comments
 (0)