File: cache_complex.test

package info (click to toggle)
php-twig 3.21.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,384 kB
  • sloc: php: 24,699; makefile: 110; sh: 43
file content (15 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
"cache" tag
--TEMPLATE--
{% cache 'test_%s_%s'|format(10, 10000) ttl(36000) %}
   {% set content %}
      ok
   {% endset %}
   {% apply upper %}
       {{ content }}
    {% endapply %}
{% endcache %}
--DATA--
return []
--EXPECT--
OK