The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
4answers
3k views

Optimizing a Proximity-based Store Location Search on a Shared Web Host?

I've got a project where I need to build a store locator for a client. I'm using a custom post type "restaurant-location" and I have written the code to geocode the addresses stored in postmeta ...
0
votes
1answer
30 views

Varnish + Nginx for Wordpress is Good?

i m instaling my new server and trying make some good environment for my wordpress so i wanna know if installing Varnish + Nginx is good idea and will speed up my wordpress website or there is other ...
1
vote
1answer
123 views

What's faster? One big query, or several smaller ones?

I'm working on an app that will require a query, via Ajax, for a bunch of posts in random order. Something like this: $query = new WP_Query( array( 'posts_per_page' => 50, 'orderby' => 'rand' ...
5
votes
5answers
994 views

Why is home (a lot) slower than other pages?

I'm trying to tune a wordpress website which suffers slow loading times, and I found out that the home page seems to take a lot more time to load. It's not due to content because I'm just considering ...
2
votes
3answers
2k views

Settings to get the most out of W3 Total Cache

I'm running a dedicated server which hosts one website - our WordPress install. Currently we're getting around 400,000 pageviews per month and that will likely rise quickly over the coming month - ...
3
votes
2answers
112 views

How to Optimize WP site for millions of posts

I'm working on a website for a company that will very likely be creating millions of posts via a custom post type. They're prayers, so basically the user on the front end just submits a short phrase ...
1
vote
5answers
4k views

Speed up Wordpress

I don't have the feeling that my blog is particularly slow, but that's because I haven't really started out yet. I'm very worried that it will get slow soon, especially because I will have blog posts ...
56
votes
13answers
4k views

Steps to Optimize WordPress in Regard to Server Load?

Besides installing W3 Total Cache or another caching plugin what steps can I take to make sure that my theme and site run as fast as possible.
2
votes
2answers
2k views

How do I edit the htaccess file to optimize my website?

Hi I have tried to optimize my website energyshop.se for a cpl of days but I cant seem to get it done. This is how my .htaccess looks like: Header unset ETag FileETag None # Hantera och redirecta ...
0
votes
1answer
31 views

ordering and optimizing functions

Ive been hard at work trying to build some functions to display products on my site. The prices for these products are calculated based on many variables. I think the first set of functions work, ...
9
votes
3answers
640 views

What's a good strategy for planning WordPress DB growth?

Hoping for some feedback on the topic of optimizing and staying on top of performance as a WordPress database grows... to paint a picture.... let's say you have a WordPress / Buddypress MU site that ...
0
votes
3answers
1k views

Where should I host my images?

I just read this article http://codex.wordpress.org/WordPress_Optimization/Offloading on how you can upload your content to external sources to improve speed and save bandwidth. Anyway, my site has ...
0
votes
1answer
55 views

Combine several CSS files into one

I've been working on a site where specific CSS files have been written and loaded only when required. I would like to combine all those scripts into one single file. I'm not interested in minifying ...
0
votes
3answers
2k views

Is there a way to measure server resource (CPU) usage by WP plugins?

I have a website who is having a high CPU usage. The only way I know of it, is the information I get from the support people of the hosting company. Is there any other way for me to become informed ...
3
votes
2answers
784 views

How to prevent execution of default query, while preserving ability to use WP_Query in template?

PROBLEM: I'am trying to prevent execution of default WordPress query for custom category template. I have found a possible solution, but looks like it preventing execution of all post queries: ...
-1
votes
1answer
65 views

echo vs output variable [closed]

Someone once told me, that it is good for performance, not to open and close php tags and use echo all the time, like that: <hgroup> <h1><?php echo getHeading1(); ?></h1> ...
0
votes
1answer
56 views

Recent posts headlines. How to optimize the loop

I'm using this in my page template to display the 20 recent posts headlines from category number 8, 17, 23, 423 <div id="horizontalTab"> <ul class="resp-tabs-list"> ...
0
votes
1answer
37 views

Make different sites on multisite reference same script

I'm using multisite and want all my scripts to point to the same URL so they are optimized as well as they can be. Currently I have: http://www.site.com/news/wp-content/themes/js/bxslider.js ...
0
votes
0answers
109 views

Gzip issue with mailchimp and comment-reply.min javascript files

I am testing my site against GTMetrix and in YSLOW, I have the following warnings: **Compress components with gzip** There are 2 plain text components that should be sent compressed ...
1
vote
2answers
126 views

Using Multiple Queries of “home_url” vs. Calling a Variable Multiple Times

Question Since I am using multiple instances of home_url() in one page template, I was curious if the following method would speed up my page load time. My method is to store the output of home_url() ...
0
votes
1answer
143 views

Using <?php echo get_num_queries(); ?> queries in and i see 7000+queries?

I have put queries in seconds. in my footer.php and i see more than 7000 queries in about 9 secs , is this a lot?? On my localhost i have 195 queries in 3,070 seconds. As the live ...
0
votes
3answers
35 views

Wordpress network vs Separate installs

I am contemplating hosting all my client sites on one wordpress network. So far I've been installing a new wordpress installation for every site. Is it a good idea (compared to standalone ...
0
votes
2answers
691 views

How do I minify '@import' css files with wp-minify?

I am trying to use wp-minify to minify my js/css on the fly. I can get the 'direct' css files to be minified, but I can't seem to get wp-minify to minify the 'linked' css files. My theme is a child ...
0
votes
0answers
26 views

After importing data to new DB with new name, receiving a constant MySQL warning

I've just spent several hours trying to understand why a WP install is really slow, I tracked it down to the database and realised everything in the db was just running super slow with the debug bar ...
0
votes
1answer
76 views

Optimizing multiple WP_querys into one call?

I have finished building my website and noticed due to the structure it takes 3 seconds to load the data due to each WP_query bouncing between different post types. I was wondering if I put these into ...
0
votes
0answers
26 views

How can I forward just my homepage but not internal pages?

I'm using a page builder to create and test different versions of my homepage as if it were a landing page so I can A/B test it. That page builder is hosted on a different server than all the rest of ...
1
vote
4answers
564 views

How can I easily reduce the size of WordPress installation from development to production?

Sometimes it happens that cheap but fast/reliable hosting plan has the drawback to have only 50MB/100 MB of local space, for files and database. Now, before going to production, I delete manually ...
0
votes
0answers
47 views

Homepage not loading, all other pages loading

I've made a small website using WordPress. I've been facing a problem since quite long - my homepage is either extremely slow to load, or doesn't load at all. But all other pages of my website load at ...
0
votes
0answers
51 views

Most efficient way to list all categories and display a post for each of them?

I'm working on a blog that has around 8.000 posts and 50 categories. The task I'm working on is to list all categories and for each category to show the latest post with a certain custom field value. ...
1
vote
3answers
593 views

WordPress hosting optimized servers - Is this just a sales gimmick? [closed]

I have always hosted my own websites on my own hardware, this includes WordPress. I always see on shared hosting sites "WordPress Hosting" which looks to be the exact same as their regular hosting ...
0
votes
0answers
200 views

Plugins enqueuing jquery in head

I am trying to optimise my site for mobile and enqueued my scripts to be placed in the footer so as to eliminate render-blocking javascript in above the fold content. Unfortunately some of the plugins ...
0
votes
2answers
404 views

How to optimize multiple WP_Query() calls on one page?

The current site I'm building has a homepage that is going to have around 10 instances of WP_Query(). Some of them are going to pull a series of posts, while others are targeted at one single post ...
-1
votes
1answer
33 views

Wordpress Customise

I'm looking for a plugin that lets me put a "please wait" message (similar to notebook-driver.com where you're redirected to download link after a few seconds) when people click on certain links. For ...
-1
votes
1answer
2k views

cleaning up safely wordpress wp_postmeta table

In a effort to facilitate maintenance of my site, optimise page loading , and also helping out db migration , i am trying to cleanup the wordpress database of my site. i ahve realised the wp-postmeta ...
0
votes
1answer
782 views

How to remove in the wordpress database all posts revisions except the last three?

here is the commonly recommended sql command for removing posts revisions and cleaning up the wp database: DELETE a,b,c FROM `wp_posts` a LEFT JOIN `wp_term_relationships` b ON (a.ID = b.object_id) ...
2
votes
2answers
192 views

Publish a message on facebook after having posted a comment

I would like some advice on how to improve the code I use for allowing people to comment posts. Users can only submit a comment if they are connected with Facebook. I started developping this feature ...
3
votes
10answers
1k views

Website is slow: advice on optimization

This WordPress-based website i just released is dead slow. I've optimised my theme a lot and get a pagespeed of 91/100 but the first time to byte is the culprit: it takes 8 up to 20 seconds. I've ...
1
vote
2answers
80 views

Optimising a big Wordpress site

I'm looking at optimising a rather large site I've been adding to and adding to. The database has become pretty big (maybe 100,000 posts) and it has started slowing down somewhat and giving me "Mysql ...
1
vote
2answers
215 views

Can I prevent “wp_user_level” from getting added to wp_usermeta on registration?

I've heard this meta key is obsolete, but they are still getting created every time a user registers. Can I prevent this? I'm trying to slim down that table.
0
votes
1answer
384 views

Minimal wordpress load for only `get_option` to work (because ajax…)

In a plugin I use ajax to get_option() which takes much longer than it has to because entire wp gets loaded. How do I set things up so that it (my ajax) loads only what is needed? (get_option())
0
votes
0answers
34 views

admin.php taking 14 seconds

This is a clean install but it has a (relatively) huge database of dummy posts/comments/etc. But even on single-post loads it still takes just as much. Narrowing further down menu.php takes 8 ...
9
votes
2answers
498 views

What is a good alternative to using $content_width for image optimization?

The $content_width GLOBAL in WordPress effects many themes and even some plugins by limiting the size of images and embeds in posts, it is a requirement for themes submitted to wordpress.org. It is ...
0
votes
1answer
70 views

What can cause JavaScript and CSS files to be minified?

On one of my client's site, I see that my plugin's JS and CSS files are minified. Trying to identify what causes the files to minify, I tried to deactivate all plugins (except mine), and changing the ...
8
votes
3answers
415 views

Make Google index the entire post if it is separated into several pages

While this is a question, it is as well a serious warning to publishers that separate their posts using <!--nextpage-->. Bare with me. I run a highly trafficked multiple author platform that ...
0
votes
1answer
40 views

Cache metadata for set of posts

I have a query that can only be done using straight SQL, but I need to loop through the returns as a set of posts. As I understand it, WP_Query automatically gets all the metadata for all the posts ...
3
votes
2answers
986 views

Safe to disable wptexturize?

To optimise the speed of my platform (beyond caching, database optimisation, JPEG compression, CSS sprites etc), it has come to my attention that disabling the wptexturize() function may give some ...
0
votes
1answer
42 views

Optimizing site speed by localizing paths

I read an article (which I didn't save) that argued you can improve the performance of your site by changing all file paths to full paths, so for instance, instead of <img src="<?php ...
4
votes
3answers
2k views

Optimize Multiple Taxonomy Term MySQL Query?

(Moderator's note: Title was originally: "query/database optimisation") I'm written a function for a custom "filter" search panel that allows users to select terms from up to four custom taxonomies. ...
10
votes
2answers
4k views

Wordpress Database Slow - should I switch to InnoDB?

I have a WordPress site with well over 10k posts, and things are starting to get very slow whenever I am adding and editing posts. Pages load nice and fast for users, along with the admin lists of ...
2
votes
1answer
100 views

Performance-wise, is it better to enqueue a (small) script on every page or test to see if it's needed?

I'm using the FitVids.js script to make YouTube video embeds work with a responsive layout. The script is < 3kb, but only about half of my pages actually have YouTube embeds. In terms of total ...