Twenty-four things you can do to make SMF go faster (Updated June 16th, 2010)

Started by Vekseid, February 16, 2009, 06:29:50 AM

Previous topic - Next topic

teos55

SMF 2.0.3  default theme  curve    Simple Portal  2.3.5  shout box enabeled ,    Smileys

  Read all the topic from time to time, applied some of them where applicable, avatars etc.

  Was facing performance issues with my site, home page comes very slowly ...

Removed some mods, do some maintenance, no help.

While dealing with smileys, I've noticed that some manualy added smileys to aspecific simeley folder by me, are not in other smiley folders,so  receving warnings.
I didnt pay attention to that for a while, but today I copied the missing smileys to other smiley dirs, that system is reporting as missing.
  Voola  ...  The page loads faster then before ...

I dont know how is applicable to all themes and variations  but can you pls check your systems and report accordingly.

It might be a considance, then I'll delete this post ...
Give it a try ...

( moving these smileys to a subdomain might be an alternative, I haven tried yet)

crobbe

Hi folks.

Just wanted to doublecheck though I am going to move my avatars right now:)

I'm running SMF 2.0.3

I've created a new directory http://www.mydomain.com/avat

Am I supposed to put the entire URL in the "Specific catalouge" box or just /avat?

After I've done that I just put in the url http://www.mydomain.com/index.php?action=manageattachments;sa=moveAvatars in my browser, and that will move the avatars over?

Thanks

Chris

crobbe

Did the above but the avatars does not move over to the new directory.

New avatars ends up there but the old ones are still in the old directory, please advice.

Arantor

That would be because you did not read the instructions properly. The URL you used is for 1.1.x, the URL for 2.0 is index.php?action=admin;area=manageattachments;sa=moveAvatars as per the first post in this thread.

crobbe

Quote from: Arantor on January 05, 2013, 03:53:36 PM
That would be because you did not read the instructions properly. The URL you used is for 1.1.x, the URL for 2.0 is index.php?action=admin;area=manageattachments;sa=moveAvatars as per the first post in this thread.

Used that one too, says the directory is not writeable.

The new /avat directory is set to 777.

Arantor

Did you tell it to actually use /avat ? /avat means something different to SMF (and indeed any operating system) than it does to you. What is the normal attachments path that SMF tells you it's using?

crobbe

Quote from: Arantor on January 05, 2013, 04:02:32 PM
Did you tell it to actually use /avat ? /avat means something different to SMF (and indeed any operating system) than it does to you. What is the normal attachments path that SMF tells you it's using?

Here is what the backoffice looks like, see pics below.

The normal path would be /avatars.

Arantor

Except the path isn't /avatars at all. The actual path is /hermes/bosweb/web062/b622/nf.adelm...something.../avatars

And as such, the path you need to use for your new avatars folder is also going to be something like /hermes/bosweb/web062/b622/nf.adelm...something... but I don't know what it will be for sure...

I don't really know how to explain the problem, except that the domain is like a shortcut to several layers down in the actual server but you can't skip them.

crobbe

Ok, so if the newly created directory is /avat then I would use  /hermes/bosweb/web062/b622/nf.adelm...something.../avat as
url to the specific catalouge for uploading (pic 2)?

Here is the original thingy: /hermes/bosweb/web062/b622/nf.adelmetallforumse/public_html/avatars

Arantor

If the newly created directory is /avat, you will use /hermes/bosweb/web062/b622/nf.adelmetallforumse/public_html/avat as the full path that it needs.

crobbe

Quote from: Arantor on January 05, 2013, 04:21:12 PM
If the newly created directory is /avat, you will use /hermes/bosweb/web062/b622/nf.adelmetallforumse/public_html/avat as the full path that it needs.

Ok, and what goes where? Do I have to do the change on more places then in the "specific area" and leave the toparea so to speak as is?

Arantor

You just put that in the one box that was giving you an error just now, and that should be all the changes you need to make.

crobbe

Quote from: Arantor on January 05, 2013, 04:23:51 PM
You just put that in the one box that was giving you an error just now, and that should be all the changes you need to make.

That worked out pretty well I can tell you.

Huge thanks.

Opentoe

When some of these recmmendations there is code that needs to be entered in. Where is the easiest way to enter this code in? Is there an input box somewhere that SMF has?


Arantor

Most of the 'code' suggestions are SQL queries, which should be executed from phpMyAdmin. Not all of them are applicable for 2.0.

Though honestly the first step, regarding avatar changes is by far the most important to do.

kevin.michiels

Hi
I had some big problems lately with this(move of avatars directory) so I decided to return things to what they where before.
The attachment directory.

Now when users upload avatars they are put in the original attachment folder = GOOD;
The only thing I can't mange to do is the current ones. Old Members profile pictures are still directing to the old non existing directory(avs).
I want to move the old avatars back to the attachment folder(attachments).
How can this be achieved ? Cause the index.php?action=manageattachments;sa=moveAvatars is not working.

to make things clear, I want to revert the avatar move explained above.

solewind

My appreciate. I follow your guide to make some modification on my forum and it gets much faster now. I haven't done all the modification yet as I'm a newbie. I just did the basic improvement but it does work! Gotta do the intermediate improvement tml. Thanks again for your useful tips.


briggz5d

This is just awesome, all the basic improvements have helped a lot to improve my site.
I'm yet to move avatars tho (seems technical)

About Pruning inactive members - I kinda need their emails for Newsletters. So even if they never login or post i still have a large reach when sending (HTML) newsletters - this brings some of them back.

Google page speed still suggest improvements to server response time for theme icons and recommend css sprites (which is too complicated)

Thanks

iamjanco

Great thread, I do have some questions though. A little background first:

We've been using a 1.x version of smf for some time now on a couple of online gaming sites we developed and it's worked great. After reviewing the various forum packages that are currently available (especially reviews/comments made by their users), I decided smf 2.x would suit my needs best on my own WordPress-based site, which I host on a VPS that I use for development purposes (that means no other production sites are hosted there).

Anyway, I figured I'd first get things set up in a local copy of WAMP running on Win 7 64-bit, just to check it out. I use WAMP 2.4, which until now, has been okay for everyday stuff (Apache:2.4.4, MySQL: 5.6.12, PHP: 5.4.12). By default, WAMP isn't set up to run INNODB and you have to go through a slew of mods to run INNOB in my local configuration (meaning more overhead of course, more than I've got the time for at the moment).

Now for my question and the reason I'm asking it:

After installing smf 2.0.5 on my local machine, configuring it, and adding categories and boards, I ran into the category ordering issue other folks have been experiencing elsewhere. So I searched Google, and found a thread on this forum (http://www.simplemachines.org/community/index.php?topic=500619.0) that led me to this thread. Now it could be that my locally installed copy of smf is having problems with WAMP 2.4 the way its developer has it set up out of the box and/or because of the versions of PHP and MySQL that are used in WAMP 2.4, but does anyone have any other idea why the issue is occurring when using smf straight out of the box (that is, before making any changes to the tables using MyISAM)?

Cheers, any additional insight would be appreciated.

Advertisement: