Title: Failed to create cache directory
Last modified: August 22, 2016

---

# Failed to create cache directory

 *  Resolved [fotan](https://wordpress.org/support/users/fotan/)
 * (@fotan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/)
 * I’m using AI1EC on a blog network and ran into the following problem when I updated
   the plugin.
 * Failed to create cache directory: /var/www/ws-test-blogs/docroot/wp-content/plugins/
   all-in-one-event-calendar/cache//twig/
 * My question is this. Doesn’t making the cache folder writable open the whole 
   server to a security risk? Say someone writes a plugin to use that writable cache
   folder to store a php file that deletes everything on the server. Odd example,
   but I think you get the point.
 * Or does WordPress take care of this somehow that I don’t know?
 * Thanks in advance.
 * [https://wordpress.org/plugins/all-in-one-event-calendar/](https://wordpress.org/plugins/all-in-one-event-calendar/)

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

 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501117)
 * Well, i hope that if someone makes a plugin that just deletes everything, the
   first user will let all other know 😀
 * More seriously, yes, it can be an issue, on shared hosting as it could theoretically
   be possible to make nasty things, and that’s why usually on shared hosting usually
   folders are not writable.
    If you have your own hosting ( a VPS or something )
   you just have to pay attention to what plugins you install, but a nasty plugin
   could do nasty things without the need to write our cache folder, it would just
   do it if the db users can drop databases.
 * The more important part: do you have a twig folder in your cache folder already?
   Because Twig templates should be pre compiled and if they are not, that could
   be a bug on our side.
 *  Thread Starter [fotan](https://wordpress.org/support/users/fotan/)
 * (@fotan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501226)
 * Yep. There’s a twig folder. When the error came up on the test server there was
   a link at the end of it to click when you fixed the problem. Without changing
   anything I clicked it and the plugin became enabled and it looks like it might
   be working fine. I’ll have to do some more with it tomorrow, but maybe it’s just
   a funky thing.
 *  [aisnsso](https://wordpress.org/support/users/aisnsso/)
 * (@aisnsso)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501257)
 * chmod 777 /var/www/ws-test-blogs/docroot/wp-content/plugins/all-in-one-event-
   calendar/cache//twig/
 *  Thread Starter [fotan](https://wordpress.org/support/users/fotan/)
 * (@fotan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501286)
 * Thanks [@aisnsso](https://wordpress.org/support/users/aisnsso/), but that’s what
   prompted this whole conversation. 777 means anyone anywhere can write to that
   folder. That won’t fly with security on my production server.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501312)
 * We released 2.1.8 does it fixes this?
 *  Thread Starter [fotan](https://wordpress.org/support/users/fotan/)
 * (@fotan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501322)
 * Nope. Same problem.
 * The committee decided to move away from this plugin because of the security risk.
   It’s a great plugin, just doesn’t fit for our purposes.
 * Thanks for the help.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501324)
 * ok, no probs, as i explained i see no security problem unless on shared hosting,
   just one question, i gave for granted that it was just a notice and not an error,
   i mean, did the plugin work or was it broken?
 *  Thread Starter [fotan](https://wordpress.org/support/users/fotan/)
 * (@fotan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501325)
 * The plugin threw an error on the top of the plugins page that said it had been
   disabled. There was a link at the bottom of the message that you could click 
   to re-enable it and that seemed to work.
 *  [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501326)
 * Ok thanks because the folder doesn’t need to be writable for the plugin to work,
   i checked and we ship twig templates. But it shouldn’t deactivate itself. Thanks
   for reporting i’ll look into this.
 *  [great-taste](https://wordpress.org/support/users/great-taste/)
 * (@great-taste)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501597)
 * I’m getting the Templates cache is not writable message on my settings page. 
   Does it not need to be writable? I may be confused but my developer and i think/
   thought that this may be why we’re getting memory errors.
    Please advise. Thank
   you, Teri
 *  [Benjamin](https://wordpress.org/support/users/bsokic/)
 * (@bsokic)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501598)
 * Hi Teri,
 * Please change the permission to 775, it should solve the issue.

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

The topic ‘Failed to create cache directory’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 11 replies
 * 5 participants
 * Last reply from: [Benjamin](https://wordpress.org/support/users/bsokic/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/failed-to-create-cache-directory-1/#post-5501598)
 * Status: resolved