How To Speedup Your Wordpress Blog Como a aceleração seu blog Wordpress

Advertisements Publicidades

This is a Guest post by Ram from Este é um cliente de correio por Ram Teknobites Teknobites who blogs about Tech- news, Web 2.0, tools, tips and tweaks. quem blogs sobre a notícia-Tech, Web 2.0, ferramentas, dicas e tweaks. Don’t forget to visit his blog for more news and Não se esqueça de visitar o seu blog de notícias e mais Subscribe to his blog Inscrever-se para o seu blog for regular updates. para as actualizações regulares.

Wordpress is the best blogging platform available (some may not agree) with hundreds of plugins to tweak for your needs. Wordpress é a melhor plataforma blogging disponíveis (alguns podem não concordar) com centenas de plugins de ajustar as suas necessidades. When you start your blog you may not need to optimize your blog to speedup but once your blog receives traffic or make it to the digg frontpage it is necessary to tweak it so that it runs faster. Ao iniciar seu blog que você pode não precisar de otimizar o seu blog para aceleração, mas uma vez o seu blog recebe o tráfego ou torná-lo para o FrontPage digg, é necessário astúcia para que ele corre mais rápido. In this post we will see how we can speedup wordpress blogs with simple steps. Neste post vamos ver como podemos aceleração wordpress blogs com passos simples.

Wordpress

  • Themes like K2 are fancy and give a nice feel for the visitor but they consume lot of resources and effect page loading time. Temas como o K2 são extravagantes e dar um agradável para os visitantes, mas sinto que consomem grande quantidade de recursos e efeitos página carga tempo. Use simple themes with less CSS and Javascript so that your blog runs smoothly. Use temas simples com menos Javascript e CSS para que o blog é executado sem problemas. If you have to use AJAX use where it is necessary. Se tiver que usar AJAX usar-se quando necessário. You can even optimize CSS and Javascript with tools like Você pode até mesmo otimizar o Javascript e CSS com ferramentas como CSS Compressor CSS Compressor and e Javascript Compressor Javascript Compressor .
  • Use plugins which are necessary, remove all unwanted plugins. Use plugins que são necessários, remova todos os plugins indesejados.
  • Wordpress has a bulit in object cache but it is not enabled by default, you can enable this by adding the below lines to your wp-config.php file. Wordpress bulit tem um objeto em cache, mas não é ativado por padrão, você pode ativar esse, adicionando a linha abaixo ao seu arquivo wp-config.php. You can notice the difference in performance later. Você pode notar a diferença no desempenho posterior.
    //enable Object Cache / / habilitar Object Cache
    define(’ENABLE_CACHE’, true); define ( 'ENABLE_CACHE', true);
    //define expiration time / / definir expiração tempo
    define(’CACHE_EXPIRATION_TIME’, 900); define ( 'CACHE_EXPIRATION_TIME', 900);
  • Wordpress has Gzip compression support you can enable this so that browsers with Gzip support will load your site faster. Wordpress tem compactação gzip você pode ativar esse suporte para que navegadores com gzip apoio irá carregar o site mais rápido. This function is wp-admin >> Options >> Reading . Esta função é wp-admin>> Opções>> Reading. This should be disabled if you plan to use Wp-cache plugin. Isso deve ser desativado se você planeja usar Wp-cache plugin.
  • Use Usar Wp-cache plugin to cache posts in static files. plugin para arquivos estáticos em cache lugares. These files are served for future requests with out compiling PHP code and building the page from the database. Esses arquivos são servidos para futuros pedidos, com a compilação código PHP e construir a página do banco de dados. This is a must use plugin when you are dugg. Este é um plugin deve usar quando estiver dugg. Remember Gzip compression should be disabled to use this plugin. Lembre-se de compactação gzip deve ser desativada para usar este plugin.
  • Try to minimize the external scripts on your sidebar these include Mybloglog, Blogcatalog and other javascript widgets. Tentar minimizar os scripts externos em sua barra lateral estes incluem Mybloglog, Blogcatalog javascript e outras flores.
  • You can serve TLA and other affiliate banners from your own server instead of loading the images remotely. Pode servir TLA banners e outros afiliados a partir do seu próprio servidor, em vez de carregar as imagens remotamente. (This may consume your bandwidth but you are no longer dependent on external server speed) (Isso pode consumir a sua banda, mas você não está mais dependente do servidor externo velocidade)
  • The below tips are only useful if you have a dedicated server. As dicas abaixo são apenas úteis se você tiver um servidor dedicado.

  • Install PHP Compiler Cache scripts like eAccelerator or Zend Optimizer on your server. Instale Compiler Cache scripts PHP como eAccelerator Otimizador Zend ou em seu servidor. These scripts will cache PHP scripts in their compiled state so that the server don’t have to compile PHP scripts each and every time they called from wordpress. Esses scripts irá cache scripts PHP no seu estado compilado, para que o servidor não precisa compilar scripts PHP todos e cada vez que chamavam de wordpress.
  • Enable Mysql query cache: Mysql query cache saves query results and serves it when the same query comes again. Ativar MySQL: MySQL Query query cache poupa resultados e serve-la quando a mesma pesquisa vem novamente. You can add the below 2 lines to your /etc/my.cnf file to enable this. Você pode adicionar o 2 linhas abaixo ao seu arquivo / etc / my.cnf para permitir isto.
    query_cache_type = 1 query_cache_type = 1
    query_cache_size = 33554432 query_cache_size = 33554432
    The query cache parameter tells how much memory to use, in this case it is 32M. O cache parâmetro indica a quantidade de memória para utilização, no presente caso, é 32M.

Now apply some of these tweaks if not all and make your Wordpress to run faster. Agora aplicar alguns desses ajustes, se não todos e fazer o seu Wordpress para correr mais rápido. Do let me know if you use any other tweaks to speedup your blog. Será que me avise se usar qualquer outro tweaks aceleração para o seu blog.

Share this Post Compartilhar esta postagem

StumbleUpon-4848.pngdigg-4848.pngtechnorati-4848.pngalimenta-4848.pngdelicious-4848.png

Comments Comentários

  • Vijay Vijay said: disse:

    Interesting set of tips here, Ram! Interessante conjunto de dicas aqui, Ram! I need to implement a few of them myself! Eu preciso implementar algumas delas mim!

  • Ken Xu Ken Xu said: disse:

    OW, wish I had the dedicated server! OW, queria ter o servidor dedicado! :)
    Nice tips, wp-cache is sure one of the good way to optimize download time. Nice dicas, wp-cache é de certeza uma boa maneira de otimizar o tempo download. But it’s kind of annoying if you try to modify your theme or else because it will not appear immediately. Mas é o tipo de chato se você tentar modificar o seu tema ou então porque ele não aparecerá imediatamente. Need to clear the cache and disable it before begin tweaking. Preciso limpar o cache e desativá-lo antes de começar ajustes. :)

  • Sumesh Sumesh said: disse:

    Nice tips - but people need to be minimalist to take off JS widgets and plugins. Dicas Nice -, mas as pessoas precisam de ser minimalista para descolar JS widgets e plugins. I am, for one ! Estou, por um!

    You might also want to take a look at similar post I wrote some time back, and was stumbled heavily: Você pode também querer dar uma olhada semelhantes post que escrevi algum tempo para trás, tropeçou e foi fortemente:
    Have you optimized your blog? Você já otimizados seu blog?

    You should add one more bit to #1 - use PHP compression for stylesheet(see my post for details). Você deve adicionar um pouco mais a # 1 - uso PHP para compressão de estilo (ver meu post para mais detalhes).

  • Bush Mackel Bush Mackel said: disse:

    Good tips. Boas dicas. I can vibe with the whole complicated theme thing too. Posso sintonizados com todo o complexo tema coisa também. I think the mess of a theme I use has been slowing things up quite a bit. Acho que a bagunça de um tema que tem sido usar travam as coisas um pouco. It doesn’t help either that I had a huge error that was coming up every time someone tried to access my site! Não ajuda, quer que eu tive um enorme erro, que foi subindo cada vez que alguém tentou acessar o meu site!

    That’s what I get for using a theme that includes a million php files. Isso é o que eu recebo por utilizar um tema que inclui um milhão de arquivos php. *rolling eyes* * material olhos *

  • Ashish Mohta Ashish Mohta said: disse:

    Wp-cache is a good plugin if you cant afford for hosting but I guess paying 10 to 20$ month is not a big deal and You should be able to host your site nicely. Wp-cache é um bom plugin se você cant arcar para hospedagem, mas eu acho pagando $ 10 a 20 meses não é um grande negócio e Você deve ser capaz de hospedar seu site facilmente.

    I had been in dig with 60000 hits in 24hrs with all scripts running including related post . Eu já estive em cavar com 60.000 acessos em 24 horas com todos os scripts em execução, incluindo pós afins. My host never said anything to me on that. Meu anfitrião nunca disse nada a mim sobre isso.
    The inbuilt chache property I was not aware of that. A propriedade inerente chache eu não estava ciente disso. I would find in wordpress codex to see more about it Gostaria de encontrar no wordpress códice para ver mais sobre ele

  • ram ram said: disse:

    Thanks to Nirmal for this oppurtunuty and to all of you who have commented. Graças ao Nirmal oppurtunuty para esta e para os que tenham tido comentou.
    @Sumesh @ Sumesh
    I am not aware of this, i will check your post. Não tenho conhecimento de tudo isto, vou verificar o seu posto. Thanks for the info Obrigado pela info
    @Ashish @ Ashish
    You are lucky, when my site is on digg front page it is my mysql server is down for sometime, in that short time i removed K2 theme and implemented few tweaks and then it went well. Vocês têm sorte, quando o meu site está na primeira página digg, é o meu servidor mysql está necessitando de algum tempo, nesse curto espaço de tempo i removido K2 tema e, em seguida, implementados e tweaks poucos que correu tudo bem.

  • Ashish Mohta Ashish Mohta said: disse:

    @Ram: That was not luck but Because my host is powerful enough to keep up with those affects. @ Ram: Isso não foi sorte, mas o meu host Porque é poderoso o suficiente para manter o contato com os afetos. I have no optimization done not even css clean up or even Javascript reduction. Não tenho nem mesmo css otimização feita a limpeza ou mesmo redução Javascript.

    It depends largely on your host. Tudo depende, em grande medida do seu hospedeiro. I am on shared hosting and pay around 10$ a month thats it. Estou de hospedagem compartilhada e pagar cerca de $ 10 por mês thats ele.

  • DJSays! DJSays! said: disse:

    Interesting tips. Dicas interessantes. I need to check them out in details and optimise my blog with it. Eu preciso vê-los em detalhes e optimizar o meu blog com ele.

    Thanks for this post man! Obrigado por este post meu! Keep it coming! Continuem a descer!

  • Ashish Mohta Ashish Mohta said: disse:

    I looked around for the inbuilt cache you mentioned there. Eu olhei em volta para o cache inerente você mencionou aí. It has some issues and are really not recommended for shared hosting. Tem algumas questões são realmente e não recomendado para hospedagem compartilhada. Here is a small discussion and Aqui está uma pequena discussão e using wordpress object cache usando wordpress objeto cache

    # Mark Jaquith # Mark Jaquith
    Posted 7/25/2006 at 4:40 pm | Permalink Postado 7.25.2006 às 4:40 pm | Permalink

    One of the biggest misconceptions is that the object cache invalidates the need for an output (HTML) cache. Um dos maiores equívocos do objecto cache é que invalida a necessidade de uma saída (HTML) em cache. It doesn’t. Ela não. The object cache saves a few MySQL queries and a few PHP cycles structuring the results of those queries, but it still leaves many queries for MySQL, and it still requires that WordPress be fully loaded for each hit. O objeto guarda um cache de consultas do MySQL poucos e poucos ciclos PHP estruturação dos resultados dessas consultas, mas ainda deixa muitas queries para o MySQL, e requer ainda que o WordPress ser totalmente carregada para cada hit. WP-Cache2 is still extremely useful for caching your HTML output. WP-Cache2 ainda é extremamente útil para o seu cache de saída HTML.

    It should also be noted that not everyone will benefit from using the built-in disk-based object cache. Importa igualmente notar que nem todos irão beneficiar com a built-in com base em disco objeto cache. I strongly suggest that you measure execution time and compare. I sugerem fortemente que você medir e comparar tempo de execução. If you have full access to your server (dedicated or virtual), I suggest you look into alternative storage engines for the object cache, such as the ones using Memcached or APC, as this data will return more quickly than from the disk cache. Se você tem acesso total ao seu servidor (dedicado ou virtual), sugiro que procure alternativas de armazenamento em motores para o objeto cache, tais como os realizados memcached ou usando o APC, em que estes dados vão regressar mais depressa do que do cache de disco.

    #2 David Chait # 2 David Chait

    I just wanted to chime in full agreement with Mark. Eu só queria rimar em pleno acordo com Mark. Generally the object cache should NOT be used, unless you know your server setup and performance factors VERY well. Geralmente o objeto cache NÃO deve ser utilizado, a menos que você conhece o seu servidor de configuração e desempenho factores muito bem. It has even been proven detrimental (seriously in certain instances) on shared hosting setups. Ela tem se mostrado prejudicial mesmo (a sério em certos casos), em configurações de hospedagem compartilhada. If you have a dedicated server, then the alternative memory cache engines become useful — but only if you aren’t already running a mysql query cache of a decent size… Se você tem um servidor dedicado, então, a alternativa memória cache motores tornar-se útil - mas apenas se você ainda não estiver executando o mysql um cache de um tamanho decente ... ;)

    #3 Dougal # 3 Dougal

    Mark and David, Mark e David,

    Thanks for pointing out more details on possible downsides to using the object cache. Obrigado por apontar mais detalhes sobre a possível downsides usando o objeto em cache. I didn’t want to sidetrack into that tangent in my article, partially to keep it short, and partially because I’m not familiar myself with just what factors might be involved. Eu não queria adiar a solução de que em tangente no meu artigo, parcialmente a mantê-lo curto, e em parte porque eu não estou familiarizado com a mim mesmo só o que fatores podem estar envolvidos. Personally, I am on a dedicated server (at least for all practical purposes), and the object cache works fine for me. Pessoalmente, estou em um servidor dedicado (pelo menos para todos os efeitos práticos), o objeto cache e funciona bem para mim. But I also use WP-Cache2, MySQL query caching, and the APC PHP opcode cache. Mas eu também uso WP-Cache2, MySQL query cache, e da APC PHP Opcode cache.

  • ram ram said: disse:

    @Ashish @ Ashish
    Thanks for the info, i will check that Obrigado pela informação, vou verificar se

  • Jalaj Jalaj said: disse:

    Nice tips… I particularly liked the two 1) using light themes 2) using wp-cache they surely will prevent server from overloaded. Nice dicas ... Gostei especialmente as duas 1) usando luz temas 2) usando o wp-cache eles certamente irá evitar uma sobrecarga do servidor.

  • Shankar Ganesh Shankar Ganesh said: disse:

    Nice tips there, Ram. Nice dicas aí, Ram. WP Cache plugin will be of great use. WP plugin Cache será de grande utilidade.

  • Aseem Kishore Aseem Kishore said: disse:

    Excellent tips Ram! Excelentes dicas Ram! Keep up the good work. Mantenha o bom trabalho. Also, you guys might want to check out the new WP-SuperCache plugin. Além disso, vocês podem querer verificar os novos WP-SuperCache plugin. I am using it and it’s made a good bit of difference. Estou a usá-lo e ele é feito um bom bocado de diferença.

    Aseem

  • Alfred Alfred said: disse:

    I had forgotten about Gzip compression. Eu tinha esquecido de compactação gzip. Thx for reminding me Thx por me lembrar : sorriso:

  • clara sarah said: disse:

    Thanks for the list. Obrigado pela lista. I need it at this point in time. Preciso dela neste momento. Getting tired of waiting for things to load. Cansado de esperar por coisas para carregar.

  • Fahad Fahad said: disse:

    Wow, nice tips. Uau, bom dicas. I will probably be implementing some of these tips in my blog soon. Eu provavelmente irá implementar algumas destas dicas no meu blog em breve. Bookmarked it for now! Bookmarked para ele agora! : sorriso:

  • Yunus Yesilmen Yunus Yesilmen said: disse:

    Are u using all technique or which? U estão usando todas as técnicas ou que?

  • Tech Updates Tech Atualizações said: disse:

    Thats a superb guide on speeding the wordpress, but i guess 2.5x versions are already quick enough when compared to the older versions. Thats um guia soberba sobre a velocidade da wordpress, mas acho que 2,5 vezes acima versões já são suficientemente rápidos quando comparados com as versões mais antigas.

Trackbacks

There are no trackbacks Não há nenhum trackbacks


Add a comment Fazer um comentário

Translate Page Traduzir página

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanПереведите к русскому/RussianΜεταφράστε στα ελληνικά/GreekVertaal aan het Nederlands/Dutchترجمة الى العربية/Arabic中文翻译/Chinese Traditional
中文翻译/Chinese Simplified한국어에게 번역하십시오/Korean日本語に翻訳しなさい /JapaneseTraduza ao Português/PortugueseTraduca ad Italiano/ItalianTraduisez au Français/FrenchTraduzca al Español/Spanish
Nirmal is a Software Engineer and Technology Blogger. Nirmal é um Engenheiro de Software e Tecnologia Blogger. He is a Microsoft Most Valuable Professional in Windows Desktop Experience. Ele é um Microsoft Most Valuable Professional em Windows Desktop Experience.
MVPTecnologia da Índia Bloggers