Title: Cache files generated as root user
Last modified: March 28, 2017

---

# Cache files generated as root user

 *  Resolved [tglawe](https://wordpress.org/support/users/tglawe/)
 * (@tglawe)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/cache-files-generated-as-root-user/)
 * I get following error message: Autoptimze cannot write to the cache directory/
   wp-content/cache/autoptimize
 * Permission are fine, but all files and the css and js directory are written with
   user root.
 * Correction via chown to set the correct user just helped temporary. Next time
   Autoptimze created new cache files, all files were applied to User root again.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/cache-files-generated-as-root-user/#post-8964848)
 * autoptimize doesn’t have any say in what user is doing things I’m afraid [@tglawe](https://wordpress.org/support/users/tglawe/),
   files are written with the user your webserver is running under.
 *  Thread Starter [tglawe](https://wordpress.org/support/users/tglawe/)
 * (@tglawe)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/cache-files-generated-as-root-user/#post-8964874)
 * Will check it again, thanks Frank

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cache files generated as root user’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [file permission](https://wordpress.org/support/topic-tag/file-permission/)

 * 2 replies
 * 2 participants
 * Last reply from: [tglawe](https://wordpress.org/support/users/tglawe/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/cache-files-generated-as-root-user/#post-8964874)
 * Status: resolved