RSS Feed     Twitter     Facebook
Abundance Pro WP Theme
Read Detail
Live Demo
Buy Now
DK Pro WordPress Theme
Read Detail
Live Demo
Buy Now
DynamiX Pro WordPress Theme
Read Detail
Live Demo
Buy Now
Inspiration Pro WordPress Theme
Read Detail
Live Demo
Buy Now
Scope Pro WP Theme
Read Detail
Live Demo
Buy Now

Donncha: A cache directory is a temporary directory

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Font size:
  • Sharebar

WOAH! Do not put symlinks to your uploaded files in a temporary cache directory. Nginx users running WordPress should beware if they followed these instructions and put a symlink to uploaded files in the wp-content/cache/ directory. I’m going to rewrite that page right now suggesting they use a different directory, possibly wp-content/uploads/ or maybe wp-content/files/.

WP Super Cache (and I presume other caching plugins) will delete everything in the cache directory. It’s like putting important files in /tmp/ where files are routinely cleaned out on reboot.

My replies on the thread above might paint me as a cold heartless bastard but I am sorry those websites suffered data loss. However I’m shocked that they put links to uploaded images in a folder containing temporary files!

Edit (20 minutes later): the codex page has been updated, thanks Westi. It now recommends using wp-content/ms-filemap/ rather than wp-content/cache/

Related Posts

Share with: Twitter Delicious Facebook Digg Stumbleupon Wordpress Googlebuzz Myspace Gmail Newsvine Favorites More
You can leave a response, or trackback from your own site.
Some More Popular News

Leave a Reply

 

Recent Search

TheTechjournal.com
Copyright© 2012 WordPress Planet | All Right Reserved.
Best Web Hosting For WordPress