# Acorn/paths.storage does not work always

**URL:** https://discourse.roots.io/t/acorn-paths-storage-does-not-work-always/23769
**Category:** acorn
**Tags:** sage9, acorn
**Created:** 2022-08-19T01:54:28Z
**Posts:** 4

## Post 1 by @robi-bobi — 2022-08-19T01:54:28Z

I have:

- sage v10.2.0
- roots/acorn 2.1.2

My host does not allow editing `wp-content/cache`. I found the `acorn/paths.storage` filter which has solved most of the issues as I can move the cache folder to `wp-content/uploads/sage-cache`

A couple of issues remain:

1. I had to manually create the folder structure in the new cache folder. Otherwise I’m getting an exception `The /app/wp-content/uploads/sage-cache/framework/cache directory must be present and writable.`. I would expect this to be done automatically.
2. I am still seeing one warning: `Warning: mkdir(): Permission denied in /app/wp-content/themes/conspicuous/vendor/illuminate/filesystem/Filesystem.php on line 602`

The following is still being attempted to be created: `/app/wp-content/cache/acorn/framework/cache/data` despite me having a custom `acorn/paths.storage` location. Judging by some printing, the filter function is being called **after** the above mkdir attempt which might be origin of the issue.

Could someone suggest on how to further force custom cache folder.

---

## Post 2 by @cim — 2022-08-19T09:05:42Z

I have the same version of Acorn. The cache folder shouldn’t be located in the wp-content folder anymore but in the bedrock root folder: /app/cache. But I guess you don’t use Bedrock?

---

## Post 3 by @robi-bobi — 2022-08-19T10:55:48Z

Correct: I do not use Bedrock. Even if it was in /app/cache that would not work for me as the only writable folder on the host is wp-content/uploads

---

## Post 4 by @robi-bobi — 2022-08-23T14:54:04Z

Solved with a symlink (as indicated here: [How to change Acorn's default path?](https://discourse.roots.io/t/how-to-change-acorns-default-path/22788)). But I should not have had to do that, since I have used the filter.
