• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Caching files: use data or internal_data?

Garani

Active member
#1
I need to cache some files (images for the matter) anche I need a directory to use. I believe that other then make a new directory I'd rather use the data or internal_data. Which of the two should be used?

Also, in /data/avatars and /data/attachments I can get the directory content without any trouble. from my /data/my_directory I get forbidden. Any idea why this is hapopening? I do not have a .htaccess rule on the matter. Ah, forget that, I had a messed up configuration on file permissions :) Solved.
 

Jake Bunce

XenForo moderator
Staff member
#2
I need to cache some files (images for the matter) anche I need a directory to use. I believe that other then make a new directory I'd rather use the data or internal_data. Which of the two should be used?
Use data if the images are to be requested directly. internal_data is used for stuff that is not requested directly, such as full-size attachments which are behind forum permissions.
 

Garani

Active member
#3
It is going a mix of both (some will be called directly, some other will be embedded in other images on the fly by the php code). But I figured that /data was a good place to place the staff.

Thanks!