Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
0answers
43 views

Is there a way to improve or optimize this query_posts query? It's very slow

I have a fairly large database - 113,299 rows in wp_posts and 216,0649 rows in wp_postmeta. There is one custom query that I run after a post is added or edited, which appears in MySQL's slow-log ...
0
votes
1answer
22 views

Too many index.php files running and eating up all memory

I have wordpress site installed on dedicated server. From few days I'm experiencing high memory consumption on this cpanel account and it is slowing my wordpress site Then I examined Process ...
0
votes
1answer
18 views

Using functions repeatedly instead of variables

I think I know the answer already but I would like some clarification on what exactly is happening in the back end. Usually I call a wordpress function such as get_post_meta($id) and assign it to a ...
0
votes
0answers
9 views

Tweak CDN linker plugin to work with multisite subfolder set up [closed]

The CDN LINKER PLUGIN unfortunately does not work with a multisite subfolder set-up. On the mainsite the plugin works great. Please do not recommend other plugins like w3 total cache - no appetite to ...
0
votes
0answers
60 views

Speeding up admin-ajax.php

I'm currently playing around with AJAX forms, but I've noticed that admin-ajax.php is quite slow. If I simply return the word 'test', it takes around 1400ms. I'm assuming it's because it's loading ...
0
votes
0answers
18 views

How to combine/minify prototype & scriptaculous and load it at the end? [duplicate]

Currently my WP 3.9.1 installation loads prototype and scriptaculous as follows: <script type="text/javascript" ...
0
votes
1answer
35 views

AJAX – SHORTINIT set to TRUE returns blank

Thought I'd take this nifty shortinit trick for a spin. However, when I include this in my custom ajax handler, I get no response from my callback. If I comment it, it works just fine. Anything ...
2
votes
0answers
55 views

What are the effects on loading times when conditionally loading and concatenating scripts? [migrated]

Suppose you have a script in your theme that you always need on every page - say 'animate-menu.js' (10KB) - and you have one that you only need on one specific page - say 'validate-contactform.js' ...
1
vote
1answer
24 views

How to prevent/delay MySQL connections when an object cache is used?

We are using an object cache backed by memcached, however I think that WordPress will still connect to MySQL on every page load, which shouldn't be needed if all queries can be handled by the object ...
0
votes
1answer
24 views

How to get better performance for redirect from domain.tld/35 to domain.tld/full-permalink?

Based on this answer I created a function to change the shortlink from domain.tld?p=435 to domain.tld/435 and redirect domain.tld/435 to domain.tld/full-permalink: function shorter_shortlink() { ...
0
votes
0answers
30 views

child theme performance / avoid import and minify JS files

I am working on a child theme and I have been having troubles with the performance. The parent theme is not very good and I cannot see a way to improve the speed of the child theme at least a little ...
0
votes
1answer
51 views

How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]

Almost all of my CSS and JS resources can be postponed with an ASYNC or DEFER tag added to the resource. This may improve performance of my page load times considerably. However, I don't know how to ...
0
votes
0answers
16 views

Long-Running Meta Box Save (Performance)

I have a meta box that's designed to allow the user to check a few boxes to (basically) tie two posts together. The problem is that we have so many posts in the system that the request takes up to 10 ...
0
votes
2answers
36 views

WP_Options high

I have a site where the options_id field in the wp_options table have grown very, very large. After a month and a half after the installation the auto_increment value is now at over 10 million. ...
1
vote
0answers
22 views

Are There Performance Concerns with Front-End Theming Platforms on Serious WP Sites? [closed]

I've been helping a guy put together a site for a client and he insists on using a front end editing/theming platform for WordPress (in this case Pagelines DMS). However, I'm seriously questioning the ...
4
votes
1answer
242 views

Nginx + WordPress + HHVM: Why isn't Batcache working? Would Varnish help even more?

I've heard great things about HHVM, so I've setup a copy of WordPress blog (on another domain) with Nginx (with the Pagespeed module) and HHVM. Right now the benefits are obvious: on the same config, ...
0
votes
0answers
6 views

Extract visitor and other measure data from Wordpress

Is it possible to extract visitor data (such as number of views, time of views etc) from Wordpress or do you have to use the WP back-end or GA? Thanks Rich
1
vote
0answers
50 views

Slow wp-admin due to “SELECT DISTINCT post_mime_type FROM wp_posts WHERE post_type = 'attachment'”

The media library on a large site is slow in wp-admin. I did some research by looking into slow queries in the sql and found that this query is causing the slow response: SELECT DISTINCT ...
0
votes
0answers
28 views

Page will only display first 6 videos

I'm creating a page in WordPress using a custom theme. I have a page that I need to put 8 (maybe more) videos on. With 6 video players on the page it loads in less than a second, but as soon as I put ...
0
votes
0answers
35 views

Some Javascript and CSS not being compressed

Most of my site is being compressed by mod_deflate but there are still several JS & CSS files that are not. I cannot for the life of me figure out why these files are exempt. Thank you for any ...
0
votes
1answer
39 views

Is saving multiple options or saving multiple items in one option better?

I have added multiple fields to a custom taxonomy. I followed Pippin's tutorial. This method creates a single option per taxonomy item. The multiple fields are saved in taxonomy_id. I was not sure ...
0
votes
1answer
31 views

What's the impact on WordPress' performance regarding the amount of classes/files in a plugin?

I'm refactoring a WordPress plugin and I have two main classes with an average of 500 lines between the two. There are other files in the plugin, but these are the ones where I keep most of the ...
0
votes
0answers
28 views

One query to get posts and their taxonomy terms

I am building a map of posts and taxonomies to do some more intensive processing later on. Right now I am querying the posts with WP_Query and iterating over each one to get their taxonomy terms and ...
0
votes
1answer
38 views

What are the performance hiccups when building plugins?

Im very interested in plugin development for wordpress. But I need to get a better understanding as to what parts of a plugins functionality is causing more or less harm to the performance of ...
3
votes
1answer
189 views

How can I reduce the number of database query calls for this custom homepage?

I am working on the design of a blog with the below(just a sample) category hierarchy. PARENT | ...
6
votes
3answers
447 views

get_option() vs get_theme_mod(): Why is one slower?

I've been using get_theme_mod() for some time in various projects of mine. I decided to take advantage of the Theme Customization API in WordPress v3.4 once it was available as I felt it was an ...
0
votes
1answer
42 views

Custom Post Type vs Shortcode: Which one is more performant?

I am designing a Wordpress blog where I will have two types of posts: a. Normal posts; regular posts with a number of text paragraphs b. Posts with table content, where the table structure will be ...
1
vote
1answer
49 views

How resource intensive is wp_register_script()?

I'm trying to use the has_shortcode() function to only load certain scripts when there is a shortcode in the post's content, with this code: wp_register_script( 'shortcode-js-file' , FILE_URI, array( ...
0
votes
0answers
53 views

How to use get_categories results called in header.php on the homepage as well without calling the database twice?

I have a Wordpress blog with multiple categories and I have to display the last two posts of certain categories(not all of them) in the header. This is so as to have this information available ...
3
votes
1answer
291 views

Is it true $wpdb->get_results is faster than WP_Query in most cases?

On my homepage, I have a section where I have to display the last five featured posts, where a featured post is simply a post with a custom field is_featured set to 1. I achieved what I want with two ...
0
votes
1answer
61 views

Why is the server response time slowing my site down? [closed]

My site is www.phoenixwave.com When I use Pingdom speed test and Google's speed test both give me the conclusion that my server response time is ridiculously slow...I'm using a Rackspace server. I'm ...
0
votes
0answers
63 views

Very Slow loading. Plugins report provided by P3 included

My problem perhaps has to be with the plugin I'm using. However I wanted to be sure if something else could be causing the problem. I'm retrieving two feeds using WP RSS multi-importer plugin, but ...
0
votes
1answer
48 views

Is MySQL query cache useful for WordPress?

Starting from MySQL 5.6, if you use InnoDB as the default engine, the query cache is now officially disabled. We've a quite moderate traffic WordPress site and experience a major downtime when we ...
1
vote
1answer
73 views

Relative links for performance?

I have a blog out there, for the sake of this answer you may take a look at it: http://blog.alphasmanifesto.com/. I'm currently working my way through some performance optimizations. As you may see, ...
0
votes
1answer
65 views

Getting a PHP Notice when using Pods with WPML [closed]

I have Pods and WPML installed, and I have SitePress Multilingual CMS extension installed for WPML, and I have many custom post types which I've added using Pods. Recently when I was checking the ...
0
votes
1answer
31 views

Wordpress Site Speed (Maybe Server Issue)

Okay so I have a newly created eCommerce site here at work, and I have set up W3 Total Cache with MaxCDN running. It all works correctly, all the static content is run from there without any problems. ...
1
vote
2answers
91 views

I have over 4000 posts, will querying some of them cause performance issues?

I am wondering if querying posts like this: <?php $args = array('numberposts' => 19, 'orderby' => 'rand' ); $posts = get_posts( $args ); foreach($posts as $post) { ...
0
votes
2answers
33 views

Performance disadvantge of second installation instead multisite feature?

Is there any (performance-)disadvantage when I run two installations of wordpress instead of using the multisite feature? My question refers only to the difference of multisite / two installations. ...
0
votes
2answers
144 views

Conditionally include files in functions.php?

I have a bunch of functionality being added to a Wordpress site including files in functions.php but I'm worried about performance. All of these files are included for every page request and not all ...
0
votes
0answers
52 views

Add index for post_title field to get similar post using full-text search

Currently, there are too many of my blog posts (about 700,000 articles) In my blog function "related articles" I'm thinking to use full-text search function to display the following related articles: ...
1
vote
1answer
43 views

Do I need to flush rewrite rules when creating new user if using custom author rewrite rules?

I am using custom urls for my author pages like this: http://site.com/author_name After I create a new user, that author page appears as not found; however, if I update my permalink structure from ...
0
votes
0answers
27 views

Developing a plugin, ran it through P3 Profiler, shows up slow, but I don't know why

I am having an issue with my plugin I'm developing. After using the GoDaddy P3 Plugin profiler, it shows that is taking up a large amount of runtime, but the plugin itself is very minimal. It just ...
2
votes
1answer
32 views

Are there Limitations on filter handles?

I was looking through a 3rd party plugin's code today and found them doing this: add_filter('some_base_handle'.sanitize_title($string), ...) Curious, since I was using xh_prof to look for code that ...
1
vote
1answer
302 views

get_the_title($postID) OR get_the_title()?

I would like to know which could be more performant between these two approaches of getting data of a post To use a loop after a WP_Query($aConditions) and use functions like get_the_title() ... and ...
0
votes
1answer
436 views

PODS performance vs custom field

is using pods's own content tpye where custom fields are all stored in one table more scalable than custom fields of wordpress where each field is a row in the meta table... I haven't used PODS yet ...
3
votes
3answers
838 views

Memory needed to host 200 wordpress sites?

I'm planning to use Multisite to host 200 different wordpress blog with each having their own unique subdomain. I notice each time I create a virtual host for each subdomain it'll use roughly 50mb ...
1
vote
2answers
248 views

Downsize CPU & DB usage in wordpress

i have created a smart interface WP based which we use to manage clients.. it uses a lot of information and data each time a client is returned / viewed. it is a locked interface and does not have ...
0
votes
1answer
36 views

Taxonomy vs Post Status

I'm building a web app so scalability is one of my main focuses when developing. On the app I am building I have a post type called 'Projects'. A project can be either be: Open In Work On Hold ...
0
votes
1answer
40 views

How to avoid filling up an array each time I run a WP_query?

I am making a following user system and need some help for retrieving the users ids a user is following. At the moment I am using the following SQL query for retrieving the users ids a user is ...
0
votes
0answers
27 views

Hops / redirects delay loading site

I notice my site is quite slow to load when bypassing server and browser cache. The delay can be anywhere between 4 and 20 seconds. Take the login page as an example and looking in Firebug, I can ...