Welcome, Guest. Please login or register.

ShoutBox!

 

Skhilled

2024-08-09, 18:19:29
Awww! Poor thing! LOL
 

Ken

2024-08-09, 09:20:52
 

Skhilled

2024-07-06, 10:33:18
 :D
 

Ken

2024-07-06, 06:40:47
Happy Saturday after the 4th of July!
 :fireworks:
 

Skhilled

2024-07-04, 20:27:02
Happy Day Off From Work!  :D
 

Ken

2024-06-25, 06:23:12
84... who knew?  laughing7
...2013 was my *magic* year
 

Skhilled

2024-06-14, 22:09:12
I hope so! LOL
 

Ken

2024-06-14, 21:41:30
My B-Day is forthcoming and maybe it will be far enough along so that I can be a regular Dancing Fool for that day!!! :banana: :2funny:
 

Ken

2024-06-14, 21:38:38
Happy Friday everyone! I'm  SOOO glad to see Friday and not just because it's the weekend, but because it marks one more day in the recovery of my foot!  laughing7

Scrubmeister

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

Recent Topics

TP Articles


Search in titles
Search in article texts

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

0 Members and 1 Guest are viewing this topic.

Offline Ken (OP)

  • Vietnam Era Veteran
  • Administrator
  • *
  • Posts: 11944
  • 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: 9429
  • 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: 11944
  • 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: 9429
  • 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: 11944
  • 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.