Welcome, Guest. Please login or register.

ShoutBox!

Scrubmeister

2024-04-19, 10:32:40
Good to see the site back faster than ever. :)
 

Skhilled

2024-04-18, 21:09:09
I've upgraded the server...more resources. ;)
 

Ken

2024-04-18, 20:57:10
Now that you mention it...  :D
 

Skhilled

2024-04-18, 20:47:19
...and, you should notice that the site is much faster.  :o
 

Ken

2024-04-18, 20:31:37
Hey Steve.
 

Skhilled

2024-04-18, 17:56:10
Re-read the message below...
 

Skhilled

2024-03-31, 15:22:06
Oh yeah, you need to upgrade the site first...
 

Ken

2024-03-30, 09:54:54
Whoops! I forgot that the SMF install here on OFF is out of date!  :'(
 

Ken

2024-03-30, 09:44:48
 Conga-Rats Steve!  :thumbup:
Me gonna install it here just for the fun of it!  :)
 

Skhilled

2024-03-29, 22:15:23
Released!  :D

Recent Topics

TP Articles


Search in titles
Search in article texts

Author Topic: Re: Big Performance Tip: Specify a Custom Avatar Directory  (Read 2216 times)

0 Members and 1 Guest are viewing this topic.

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11679
  • Gender: Male
  • View Gallery
Re: Big Performance Tip: Specify a Custom Avatar Directory
« on: December 19, 2009, 04:03:24 AM »
Just ran across this performance tip over on SMF; it's actually the second one down and not the OP that's the good one:
http://www.simplemachines.org/community/index.php?topic=197938.0

The good tip:
There is an easier way to do this using a built in hidden feature, I posted similar a while back in a hidden board so will just post it all here again.

If you allow users to upload their own avatars, move them to a specific directory rather than have them handled through the attachments system. This way you will save a big chunk of resources since they are served in a "normal way" rather than through index.php

You can do this through Admin > Attachments and Avatars > Avatar Settings > Upload avatars to > Specific directory.

Naturally create the directory and make it writable.

To move existing avatars to the new directory, access index.php?action=manageattachments;sa=moveAvatars

Be warned though your page views stats will drop to the floor, for some reason webalizer and awstats wrongly think an avatar loaded on a page is a page itself rather than a hit.

"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 9008
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • View Gallery
    • Buildz Hosting
Re: Re: Big Performance Tip: Specify a Custom Avatar Directory
« Reply #1 on: December 19, 2009, 05:26:56 AM »
Thanks! I was just reading something similar in this topic that contains 24 things to speed up your SMF forum:

http://www.simplemachines.org/community/index.php?topic=293441.0

Now that I think about it, it should also help with not losing your avy's and attachments if you delete/modify those directories...if you back it up or not delete it. ;)

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11679
  • Gender: Male
  • View Gallery
Re: Big Performance Tip: Specify a Custom Avatar Directory
« Reply #2 on: December 19, 2009, 08:04:22 AM »
There seems to be an issue with setting the path to the new avatar folder:
http://www.simplemachines.org/community/index.php?topic=353848.0
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.

Offline Skhilled

  • Administrator
  • *
  • Posts: 9008
  • Gender: Male
  • All of my passwords are protected by amnesia...
  • View Gallery
    • Buildz Hosting
Re: Re: Big Performance Tip: Specify a Custom Avatar Directory
« Reply #3 on: December 19, 2009, 12:38:32 PM »
Well, I'm glad that I did not do it yet. LOL

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11679
  • Gender: Male
  • View Gallery
Re: Big Performance Tip: Specify a Custom Avatar Directory
« Reply #4 on: December 19, 2009, 01:05:11 PM »
I tried it but so far can't get it to work. (move the existing avatars)
"Not all who wander are lost."-Tolkien
Yesterday When I was Young.