KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
2.1KB

  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Cache Settings" | translate("cacher") }{% endblock %}
  3. {% block content %}
  4. <h1>${ "Cache Settings" | translate("cacher") }</h1>
  5. <form id="cache_settings" class="split" action="{% admin "cache_settings" %}" method="post">
  6. <fieldset>
  7. <p>
  8. <label for="cache_expire">${ "Expire Cache After&hellip;" | translate("cacher") }</label>
  9. <input class="text" type="text" name="cache_expire" value="${ site.cache_expire | escape }" id="cache_expire" /> <span class="sub">${ "(seconds)" | translate("cacher") }</span>
  10. </p>
  11. <p>
  12. <label for="cache_exclude">${ "Exclude URLs" | translate("cacher") }</label>
  13. <input class="text" type="text" name="cache_exclude" value="${ site.cache_exclude | join(", ") | escape }" id="cache_exclude" /> <span class="sub">${ "(comma separated)" | translate("cacher") }</span>
  14. </p>
  15. <p>
  16. <label for="cache_memcached_hosts">${ "Memcache Servers" | translate("cacher")}</label>
  17. <input class="text" type="text" name="cache_memcached_hosts" value="${ site.cache_memcached_hosts | join(", ") | escape }" id="cache_memcached_hosts" /> <span class="sub">${ "(comma separated)" | translate("cacher") }</span>
  18. </p>
  19. <p class="buttons">
  20. <p>
  21. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Update" | translate }</button>
  22. </p>
  23. <p>
  24. <a class="button boo" href="{% admin "clear_cache" %}"><img src="$theme_url/images/icons/cancel.png" alt="clear" />${ "Clear Cache" | translate }</a>
  25. </p>
  26. </p>
  27. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  28. </fieldset>
  29. </form>
  30. {% endblock %}