your plugin generates a CPU Saturation / unable to use anymore
-
Hello,
I was using your plugin for years, but your plugin suddenly generated a big CPU saturation, causing a lot of troubles on my website. I had to deactivate this plugin last month. I tried to debug this, but without success.
Here is the query that generated a CPU saturation
<?php $connected_films = new WP_Query( array(
'connected_type' => 'films_to_films',
'connected_items' => get_queried_object(),
'nopaging' => true,
'meta_key' => '_mf_annee_sortie',
'orderby' => 'meta_value_num',
'order' => 'ASC'
) );
if ( $connected_films->have_posts() ) { ?>
<h2>Les films et séries en lien avec <?php echo $format_wording[loeuvre].' '.get_the_title(); ?></h2>
<ul class="list-search-films">
<?php while ( $connected_films->have_posts() ) {
$connected_films->the_post();
$formats = get_the_terms($post->ID,'formats' );
$mf_annee = get_post_meta(get_the_ID(),'_mf_annee_sortie',true);
$title = '['. $formats[0]->name .']'. get_the_title().' ('.$mf_annee.')';
echo '<li>
<a href="'.get_permalink().'" class="mf-affiche">
<div class="films-list" style="background-image: url('.get_the_post_thumbnail_url(get_the_ID()).');"></div>
<span class="mf-title">'.$title.'</span></a></li>';
}
echo "</ul>";
}
wp_reset_postdata(); ?>The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.