uradvd
Forum Replies Created
-
Forum: Plugins
In reply to: [WebberZone Top 10 β Popular Posts] Perfomance speed up daily counts!yes, it’s same
I have not tested it, but I think it can significantly affect the performance ofYou can only cache the widget itself when output in the object cache and counter itself. A counter that counts not only will look for ways to optimize
I meant to use the settings in the admin panel to manage the time of clearing the cache
Forum: Plugins
In reply to: [Query Multiple Taxonomies] [Bug reports]Problem was found in the pluginfix from 2.
test and work taxonomy=term,term&taxonomy=term+term+etc..# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- <html>core.php (<b>b1f20a4</b>)</html> +++ <html><b>Current File</b></html> @@ -145,7 +145,7 @@ if ( empty( $value ) ) unset( $query[ $taxonomy ] ); else - $query[ $taxonomy ] = trim( implode( '+', $value ), '+' ); + $query[ $taxonomy ] = trim( implode( ',', $value ), ',' ); return self::get( $query ); } @@ -181,7 +181,7 @@ $title = array(); foreach ( qmt_get_query() as $tax => $value ) { - $terms = preg_split( '/[+,]+/', $value ); + $terms = preg_split( '/[+,],/', $value ); $out = array(); foreach ( $terms as $slug ) { @@ -197,7 +197,7 @@ else $key = $tax_obj->labels->name; - $title[] .= $key . ': ' . implode( ' + ', $out ); + $title[] .= $key . ': ' . implode( ' , ', $out ); } return implode( '; ', $title ); @@ -244,7 +244,7 @@ } foreach ( $qmt_query as &$value ) - $value = implode( '+', $value ); + $value = implode( ',', $value ); } if ( $taxname ) {# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- <html>walkers.php (<b>b1cfeaa</b>)</html> +++ <html><b>Current File</b></html> @@ -40,7 +40,7 @@ // considering previous choices foreach ( $old_query as $old_taxonomy => $old_terms ) { - $terms = explode( '+', $old_terms ); + $terms = explode( ',', $old_terms ); if ( !isset( $count_filter[$old_taxonomy] ) ) { $count_filter[$old_taxonomy] = $terms; @@ -82,7 +82,7 @@ } protected function set_selected_terms() { - $this->selected_terms = explode( '+', qmt_get_query( $this->taxonomy ) ); + $this->selected_terms = explode( ',', qmt_get_query( $this->taxonomy ) ); } // Make start_el() and end_el()I have the same problem with the plugin does not display related posts, use this code
<?php $post_id = get_the_ID(); yarpp_related(array( 'post_type' => array('product'), 'weight' => array( 'tax' => array( 'product_category' => 2, 'post_tag' => 1 // put any taxonomies you want to consider here with their weights ) ), 'require_tax' => array( 'product_category' => 2, 'post_tag' => 1 // for example, this requires all results to have at least one 'post_tag' in common. ), 'threshold' => 1, // Display options: //'template' => 'thumbnail', // either the name of a file in your active theme or the boolean false to use the builtin template 'limit' => 5, // maximum number of results 'order' => 'score DESC' ), $post_id, true); ?>No related posts π
not work whith me, wordpress convert ‘+’ to ‘%2B’
test request
product_category=biser-yaponiya&product_size_beads=10-0%2B15-0Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] Innodb support pluginsory me bad english=(
this feature request for innodb support for big progect and this cool plugin
my sites everyday 8-10k unique users, all database on innodbForum: Plugins
In reply to: [WordPress Social Login] [Plugin: WordPress Social Login] Does not workplugin.ui.php
in function wsl_add_javascripts()
findif( get_option( 'wsl_settings_use_popup' ) != 1 ){ Β return null; }replace
if( get_option( 'wsl_settings_use_popup' ) == 2 ){ Β return null; }If you refer to the settings plug if we lose in performance, I think it is better to select the individual components and winning performance
speedup 500%
I think to create a separate function for each counter as this increases the performance counter display<?php //"top-10-counter.js.php" Display number of page views Header("content-type: application/x-javascript"); define( 'SHORTINIT', TRUE ); if (!function_exists('add_action')) { $wp_root = '../../..'; if (file_exists($wp_root.'/wp-load.php')) { require_once($wp_root.'/wp-load.php'); } else { require_once($wp_root.'/wp-config.php'); } } // Display counter using Ajax function tptn_disp_count_total() { global $wpdb; $table_name = $wpdb->prefix . "top_ten"; $count_disp_form = "Views %totalcount%"; $id = intval($_GET['top_ten_id']); if($id > 0) { // Total count per post if (strpos($count_disp_form, "%totalcount%") !== false) { $resultscount = $wpdb->get_row("SELECT postnumber, cntaccess FROM ".$table_name." WHERE postnumber = ".$id); $cntaccess = number_format((($resultscount) ? $resultscount->cntaccess : 1)); $count_disp_form = str_replace("%totalcount%", $cntaccess, $count_disp_form); } echo 'document.write("'.$count_disp_form.'")';yes is defaul plugin options
most likely because there is a code which is present in the part which we disable
WARNING: [pool www] child 96782, script ‘/data/site/wp-content/plugins/top-10/top-10-counter.js.php’ (request: “GET /wp-content/plugins/top-10/top-10-counter.js.php”) executing too slow (1.785353 sec), logging
4k users
30k pageviews/daygreat thanks!!!!!
sorry, yes
define( 'SHORTINIT', TRUE );minimun load environment. Not load /wp-includes, /wp-content
only $wpdb
Low memory usage(not load full wordpress environment), speed up ajax requestnot error in update plugin
previous db structure after update to version 1.9.1, not work count post, dayli is worksCREATE TABLE IF NOT EXISTS wp_top_ten (
postnumber int(11) NOT NULL,
cntaccess int(11) NOT NULL,
KEY postnumber (postnumber)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;my fix to version 1.9.1 plugin work fine
CREATE TABLE IF NOT EXISTS wp_top_ten
(
postnumber int(11) NOT NULL,
cntaccess int(11) NOT NULL,
PRIMARY KEY (postnumber)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;