Skip to content

Commit 8217611

Browse files
committed
Cache the Crowdin API results
1 parent 0da4e47 commit 8217611

File tree

2 files changed

+33
-31
lines changed

2 files changed

+33
-31
lines changed

package-lock.json

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/templates/forms/misc/language_table.txp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<txp:etc_cache id="crowdin" time="-3600">
12
<txp:php>
23
$key = parse('<txp:yield name="api-key" />');
34
$xml = new SimpleXMLElement('https://api.crowdin.com/api/project/textpattern-cms-textpacks/status?key='.$key.'&xml', 0, TRUE);
@@ -37,3 +38,4 @@ echo <<<EOHTML
3738
</div>
3839
EOHTML;
3940
</txp:php>
41+
</txp:etc_cache>

0 commit comments

Comments
 (0)