Я не работаю на Akamai, но мы действительно перепродаем много их сервисов.
Вы смотрели на свое кэширование CDN? Если эти изображения быстро изменяются, ситуация может состоять в том, где узлы получили обновленное содержание, в то время как Akamai кэширует метки времени от других. Попытайтесь очистить кэш через панель управления Akamai.
Есть ли другие объекты, которые кэшируются, строго Изображения. Какой-либо CSS, JavaScript?
Akamai имеет много помощи доступных вариантов, оптимизируют доставку.
Недавно я был введен в Strangeloop, они предлагают услугу сжатия, которая уменьшает объекты на страницу и сохраняет как шаблоны. Это не было бы заменой, а скорее чем-то вроде интереса.
Задержка и кэширование приносят пользу друг другу вместе. NetStorage улучшил бы производительность.
Сообщите мне, могу ли я помочь, удачи!
mdpc is correct. I don't know why somebody downvoted your question, but...
If root owns the file, you should be able (assuming you have access of course) to do a sudo chmod...
, and that should work.
If, however, you don't want root to own the file anymore, you'll need to do a sudo chown $USER
to cause the file to be owned by the user you are logged in as.
I haven't tried your script, but go ahead and try the following, noting 2 things:
1) Don't go around chowning things that you shouldn't. I don't know the context of this question, and it may be bad, very bad, or extremely extremely bad to chown the files in question (read: abuse of power). However, if you are creating this content and are implicitly (or explicitly) being given permission to mod these files, then it shouldn't be a problem.
2) I commented out a couple chowns that you shouldn't need. Remember, you can always do a ls -l
to see the ownership of a given file.
TS=$(date +"%Y")/$(date +"%m")/$(date +"%d")/$(date +"%Hh%Ms%S")
PATHTMP="/tmp/faxtiff"
mkdir -p $PATHTMP
#sudo chown -R $USER $PATHTMP
chmod 777 $PATHTMP
cp $FILE $PATHTMP
sudo chown $PATHTMP/$FILE
chmod 777 $PATHTMP/$FILE
convert $PATHTMP/$FILE -scale '50%x100%!' $PATHTMP/fax.jpg
#shouldn't need to chown here if the script is being run as the logged in user.
chmod 777 $PATHTMP/fax.jpg
mkdir -p /home/argent/faxes-recus/$TS
#chown $USER /home/argent/faxes-recus/$TS
chmod 777 /home/argent/faxes-recus/$TS
#rm $PATHTMP/$FILE
mv $PATHTMP/*.jpg /home/argent/faxes-recus/$TS
Если вы НЕ являетесь владельцем рассматриваемого файла, вы не можете выполнить операцию chmod
для этого файла.