Skip to content

Commit 5a8fc91

Browse files
committed
Cache these
1 parent 6697833 commit 5a8fc91

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

src/templates/forms/misc/language_table.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<txp:etc_cache id="crowdin-api">
1+
<txp:etc_cache id="crowdin-api" time="-3600">
22
<txp:php>
33
$key = parse('<txp:yield name="api-key" />');
44

src/templates/pages/default.txp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</p>
6565
<p>
6666
<a class="button" rel="external" href="https://github.com/textpattern/textpattern/" title="Stars on GitHub"><span class="ui-icon ui-extra-icon-github">GitHub</span> <strong>Stars</strong></a>
67-
<txp:etc_cache id="github-api">
67+
<txp:etc_cache id="github-api" time="-900">
6868
<txp:php>
6969
global $variable;
7070

src/templates/pages/showcase.txp

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -85,33 +85,35 @@
8585
</div>
8686
<section>
8787
<h4 class="accessibility">List of site showcases</h4>
88-
<txp:article>
89-
<article class="showcases" itemscope itemtype="https://schema.org/Article">
90-
<a href="<txp:permlink />" aria-labelledby="headline_<txp:article_id />">
91-
<txp:images limit="1">
92-
<txp:smd_thumbnail type="showcase-teaser-318w212h">
93-
<span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
94-
<img class="img--showcase" width="318" height="212" alt="<txp:image_info type="alt" />" src="<txp:smd_thumbnail_info item="url" />" srcset="<txp:image_url /> 2x" itemprop="url contentUrl">
95-
<meta itemprop="width" content="318">
96-
<meta itemprop="height" content="212">
97-
</span>
98-
</txp:smd_thumbnail>
99-
</txp:images>
100-
</a>
101-
<h4 id="headline_<txp:article_id />" itemprop="headline"><a itemprop="url mainEntityOfPage" href="<txp:permlink />" title="Full article"><txp:title /></a></h4>
102-
<meta itemprop="author" content="The Textpattern Development Team">
103-
<span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
104-
<meta itemprop="name" content="Textpattern CMS">
105-
<span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
106-
<meta itemprop="url contentUrl" content="https://textpattern.com/assets/img/branding/textpattern/textpattern.png">
107-
<meta itemprop="width" content="320">
108-
<meta itemprop="height" content="60">
88+
<txp:etc_cache id="landing-showcases">
89+
<txp:article>
90+
<article class="showcases" itemscope itemtype="https://schema.org/Article">
91+
<a href="<txp:permlink />" aria-labelledby="headline_<txp:article_id />">
92+
<txp:images limit="1">
93+
<txp:smd_thumbnail type="showcase-teaser-318w212h">
94+
<span itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
95+
<img class="img--showcase" width="318" height="212" alt="<txp:image_info type="alt" />" src="<txp:smd_thumbnail_info item="url" />" srcset="<txp:image_url /> 2x" itemprop="url contentUrl">
96+
<meta itemprop="width" content="318">
97+
<meta itemprop="height" content="212">
98+
</span>
99+
</txp:smd_thumbnail>
100+
</txp:images>
101+
</a>
102+
<h4 id="headline_<txp:article_id />" itemprop="headline"><a itemprop="url mainEntityOfPage" href="<txp:permlink />" title="Full article"><txp:title /></a></h4>
103+
<meta itemprop="author" content="The Textpattern Development Team">
104+
<span itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
105+
<meta itemprop="name" content="Textpattern CMS">
106+
<span itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
107+
<meta itemprop="url contentUrl" content="https://textpattern.com/assets/img/branding/textpattern/textpattern.png">
108+
<meta itemprop="width" content="320">
109+
<meta itemprop="height" content="60">
110+
</span>
109111
</span>
110-
</span>
111-
<meta itemprop="datePublished" content="<txp:posted format="iso8601" />">
112-
<meta itemprop="dateModified" content="<txp:modified format="iso8601" />">
113-
</article>
114-
</txp:article>
112+
<meta itemprop="datePublished" content="<txp:posted format="iso8601" />">
113+
<meta itemprop="dateModified" content="<txp:modified format="iso8601" />">
114+
</article>
115+
</txp:article>
116+
</txp:etc_cache>
115117
</section>
116118
<p class="alert-block information footnote"><strong>Disclaimer:</strong> Inclusion in this showcase is at the sole discretion of the The Textpattern Development Team. Any site may be removed at any time for any reason. The Textpattern Development Team is not directly responsible for any content or views expressed within third-party sites. See something wrong in this showcase? Please <a href="<txp:site_url />contact">contact us</a> and we’ll look into it.</p>
117119
</div>

0 commit comments

Comments
 (0)