# Activate the cache locally

**URL:** https://community.kinsta.com/t/activate-the-cache-locally/3027
**Category:** Questions
**Created:** [February 6, 2024, 11:23am UTC](https://community.kinsta.com/t/activate-the-cache-locally/3027 "2024-02-06T11:23:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![worldwildweb](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@worldwildweb](https://community.kinsta.com/u/worldwildweb)
#### Post date: [February 6, 2024, 11:23am UTC](https://community.kinsta.com/t/activate-the-cache-locally/3027/1 "2024-02-06T11:23:28Z")

</div>

Would it be possible to configure nginx to activate the cache locally?

---

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [February 7, 2024, 3:28am UTC](https://community.kinsta.com/t/activate-the-cache-locally/3027/3 "2024-02-07T03:28:58Z")

</div>

Hello @worldwildweb Will! 👋

Thank your reaching us out in our community!  
That’s great question! 👍  
As far as I could see in the NGINX config/settings Editor (for each of the local sites) - under the _Site configurations_ page in DevKinsta , I didn’t see anything mentioned about “cache” or “caching” there - and I’m not sure if the NGINX cache feature can be enabled locally .

We’ve asked this to our internal DevKinsta developers team and see if they can provide more information about this (whether it’s possible to enable/activate local cache in NGINX or not)! Once we have that information, we will update you again! 😄

Best Regards,  
Agus Utomo

---

<div class="post-metadata">

### Author: ![worldwildweb](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@worldwildweb](https://community.kinsta.com/u/worldwildweb)
#### Post date: [February 7, 2024, 8:18am UTC](https://community.kinsta.com/t/activate-the-cache-locally/3027/5 "2024-02-07T08:18:49Z")

</div>

Thanks @Agus I’m really excited to hear their feedback. I think that would also address many of the slowness issues that I’ve come across on this forum. 😊

---

<div class="post-metadata">

### Author: ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)
#### Post date: [February 7, 2024, 9:52am UTC](https://community.kinsta.com/t/activate-the-cache-locally/3027/6 "2024-02-07T09:52:14Z")

</div>

Hello @worldwildweb 👋

After checking with our engineers, I am sorry to say that we don’t have an out-of-the-box feature in Devkinsta for caching nor there are any immediate plans to add it.

There is an NGINX editor in Devkinsta that you can try to use to set up caching as per the following:

> **[NGINX Content Caching | NGINX Documentation](https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/)**
>
> Cache both static and dynamic content from your proxied web and application servers, to speed delivery to clients and reduce the load on the servers.

Since this is not a Devkinsta feature we don’t have a precise guide on how to do it.

---

<div class="post-metadata">

### Author: ![worldwildweb](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@worldwildweb](https://community.kinsta.com/u/worldwildweb)
#### Post date: [February 7, 2024, 11:33am UTC](https://community.kinsta.com/t/activate-the-cache-locally/3027/7 "2024-02-07T11:33:56Z")

</div>

thanks for your reply @VladimirM that’s too bad!  
I’m going to submit this as a new feature request.

---

<div class="post-metadata">

### Author: ![worldwildweb](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@worldwildweb](https://community.kinsta.com/u/worldwildweb)
#### Post date: [February 21, 2024, 10:37am UTC](https://community.kinsta.com/t/activate-the-cache-locally/3027/8 "2024-02-21T10:37:40Z")

</div>

How to ensure the directory `/tmp/nginx_cache` exists and is writable by Nginx? and if it does not exist, how to create it so it doesn’t get overwritten when I update a site or devkinsta?

---

<div class="post-metadata">

### Author: ![andre](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andre/32/2785_2.png) [@andre](https://community.kinsta.com/u/andre)
#### Post date: [February 21, 2024, 11:49am UTC](https://community.kinsta.com/t/activate-the-cache-locally/3027/9 "2024-02-21T11:49:45Z")

</div>

Hello @worldwildweb,

Unfortunately and because DevKinsta doesn’t support caching, that would fall out of scope for our support team.

It’s important to note that, since DevKinsta doesn’t support caching, it won’t be transferring any contents on that folder (if created) – it will only synchronize the site files and database.

With that said, to create that folder you’d need to follow the standard OS procedure depending on which system you’re using. It is however not possible to “block” or prevent it from being overwritten and allow Nginx to work with it at the same time, otherwise it’s very likely that Nginx won’t work properly.

Sincerely,  
Andre F.
