# New Proxy templates -\> NGINX -\> Caching without 'Empty Cache' button

**URL:** <https://forum.hestiacp.com/t/new-proxy-templates-nginx-caching-without-empty-cache-button/20536>\
**Category:** System\
**Created:** [November 3, 2025, 12:38am UTC](https://forum.hestiacp.com/t/new-proxy-templates-nginx-caching-without-empty-cache-button/20536 "2025-11-03T00:38:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@Antonio](https://forum.hestiacp.com/u/Antonio)\
**Post date:** [November 3, 2025, 12:38am UTC](https://forum.hestiacp.com/t/new-proxy-templates-nginx-caching-without-empty-cache-button/20536/1 "2025-11-03T00:38:16Z")

</div>

Hello everyone

When a ‘web → nginx → caching’ template is created, HestiaCP doesn’t detect it as a cache template, even though it’s an exact copy, and the ‘Clear NGINX cache’ button doesn’t appear.

Where does Hestia store the name of the ‘caching’ template to display the button, or what script handles this logic?

And while we’re on the subject of caching, has anyone tried adding ‘proxy\_cache\_use\_stale’ to redo the cache in the background after it expires (among other things)?

All the best 😉

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [November 3, 2025, 2:48am UTC](https://forum.hestiacp.com/t/new-proxy-templates-nginx-caching-without-empty-cache-button/20536/2 "2025-11-03T02:48:10Z")

</div>

Hi,

> [@Antonio](#):
>
> Where does Hestia store the name of the ‘caching’ template to display the button, or what script handles this logic?

In the file `/usr/local/hestia/web/edit/web/index.php`:

```auto
<?php if (!($v_nginx_cache == 'yes' || (($v_proxy_template == 'caching' || is_int(strpos($v_proxy_template, 'caching-'))) && $_SESSION['PROXY_SYSTEM'] == 'nginx'))) 

```

The template must be `caching` or contain the string `caching-` in the template name.

---

<div class="post-metadata">

**Author:** ![Antonio](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@Antonio](https://forum.hestiacp.com/u/Antonio)\
**Post date:** [November 3, 2025, 3:14am UTC](https://forum.hestiacp.com/t/new-proxy-templates-nginx-caching-without-empty-cache-button/20536/3 "2025-11-03T03:14:39Z")

</div>

Yes, when I saw the PHP line I realized my mistake. I had been using ‘\_’ caching\_1d.tpl.

So the best solution is to adjust the names.

Thank you so much, sahsanu

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [December 3, 2025, 3:14am UTC](https://forum.hestiacp.com/t/new-proxy-templates-nginx-caching-without-empty-cache-button/20536/4 "2025-12-03T03:14:47Z")

</div>

Closed on December 3, 2025, 3:14am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
