Does WP Super Cache really compress my pages? [closed]

I’m getting a Content-Encoding:gzip header when I visit your site… Cache-Control:max-age=300, must-revalidate Connection:Keep-Alive Content-Encoding:gzip Content-Type:text/html; charset=UTF-8 Date:Sat, 23 Apr 2011 15:27:48 GMT Keep-Alive:timeout=15, max=100 Server:Apache Transfer-Encoding:Identity Vary:Accept-Encoding,Cookie Also, you have a jQuery reference error in the wp-minify plugin 🙂

Function to retrieve IDs of posts, cache results, and improve wp_query

What the author of the article posted, as I read it, is suggesting you do is something like this: $cats = array(1,2,3,4); $q = new WP_Query( array( ‘category__not_in’ => $cats ) ); var_dump($q->request); You should see the complex default query in that dump. $ids = array_unique(get_objects_in_term($cats,’category’)); var_dump($ids); Now you have an array of post IDs … Read more

Optimize slow SQL query for multiple meta values

First you can optimize a little by not joining with wp_users as the joins can all be done between wp_usermeta. Another optimization would be to replace the WHERE clause with a subselect (which MySQL manages to optimize so it only gets executed once). The meta_key clause parts should be put into the WHERE clause I … Read more

Limit scripts and styles on dashboard for user role

Install Query Monitor to check which scripts and what hook they are using for your role. Keep in mind these scripts may have dependencies. You should probably start with the Dashboard Widgets API. The names of the default widgets on the dashboard: // Main column (left): $wp_meta_boxes[‘dashboard’][‘normal’][‘high’][‘dashboard_browser_nag’] $wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_right_now’] $wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_activity’] // Side Column (right): $wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_quick_press’] $wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_primary’] … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)