The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
27 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, ...
0
votes
1answer
44 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 ...
-1
votes
1answer
57 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
50 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
36 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 ...
1
vote
2answers
110 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
110 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
0answers
92 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 ...
0
votes
3answers
34 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
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
3answers
860 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
0answers
107 views

How do I troubleshoot slow loading times caused by plugins?

I ran the Plugin Performance Profiler plugin and exited after 54 seconds of loading. It looks like these three plugins are the culprits responsible for my site's poor loading times: Woocommerce ...
0
votes
1answer
71 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
25 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 ...
0
votes
0answers
40 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. ...
0
votes
0answers
15 views

Optimizing wordpress database calls bloginfo [duplicate]

In my theme I have various calls to the blog properties, like bloginfo('description'), bloginfo('name'), bloginfo('charset') and possibly the same one is called more than once. Does wordpress ...
0
votes
0answers
173 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
321 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
31 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 ...
-2
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 ...
-1
votes
1answer
696 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
168 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 ...
1
vote
2answers
77 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 ...
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 ...
0
votes
1answer
351 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())
3
votes
2answers
664 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
vote
2answers
190 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
68 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 ...
0
votes
1answer
39 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 ...
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 ...
8
votes
3answers
409 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 ...
9
votes
2answers
472 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 ...
3
votes
2answers
860 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 ...
2
votes
1answer
99 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 ...
1
vote
1answer
129 views

How to optimize my query filtering out unwanted data?

I use get_posts ($arg); to query the post table. Usually I need only three fields: post_title, ID and post_excerpt. But the data returned are many more, including post_content that is usually huge. I ...
1
vote
1answer
139 views

How to stop wp_postmeta from being called on archive and search pages?

Currently, when I load a search or result page, it queries the wp_postmeta table which is leading to the page taking ages to load. I realise this is a result of this table being huge (70k rows), and ...
0
votes
2answers
149 views

Minimizing scripts & css files that plugins add

I try my best to limit plugin usage and only use ones that are well designed. But I still find that many will load a lot of extra scripts and styles, and few have options to load selectively based on ...
2
votes
2answers
294 views

Splitting the main query in multiple loops with query_posts and/or pre_get_posts?

I have a custom post type 'events', to which I have associated a custom taxonomy 'calendar'. The calendar has 12 fixed terms, for each month of the year ( 'august', 'october', 'november, etc.). I'm ...
10
votes
6answers
2k views

How to benchmark a WordPress installation?

I'm trying to gather some benchmarking data to determine how well my optimizations to WordPress are fairing. I've found this page on High Traffic Tips but it doesn't contain any data. Are there any ...
0
votes
2answers
88 views

How effective are cacheing plugins for dynamic pages?

The majority of pages of one of my sites can only be accessed by registered users. While these pages do share some common, static content (headers, etc) most of the information on the page is ...
2
votes
2answers
1k views

If I consider changing my WordPress DB tables to InnoDB, will it have an effect on the way WordPress works?

I found a superb post here about optimising WordPress for large installs. One of the steps refers to lighthttpd which sounds excellent but isn't currently supported by DirectAdmin. Last time I messed ...
0
votes
2answers
366 views

How can I improve the performance of this query_posts loop?

I created a WordPress page template to build a customised XML feed for certain WordPress posts on my site. Specifically, the page template renders XML and only includes certain custom post types and ...
1
vote
0answers
292 views

WP-Super-Cache - generate cache programmatically [closed]

I wonder if there is possibility to generate WP-Super-Cache programmatically after the cache is being purged ( after I have published a new post ). I thought of writing some kind of crawler that will ...
5
votes
2answers
918 views

WP_Query leaking absurd amounts of memory

Every time I call WP_Query() in the function below, Wordpress leaks 8 megs of memory. And since I call this function a lot, things get hairy pretty quickly... :( I've tried unsetting the resulting ...
9
votes
3answers
610 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
1answer
806 views

Should I remove transients from the wp_options table?

I have been doing some cleaning up in the database of one of my WordPress installs, and I noticed that the wp_options table was about 2.1mb, and had 1200 rows. I've gotten it down to around 800 rows, ...
1
vote
3answers
1k 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 - ...
11
votes
2answers
2k views

How to cache json with wp-super cache

In a new project we are using wp-super-cache (the client's preferred plugin) to create the static html files for custom content types. But we are trying to figure out if everything is being cached ...