• Resolved El Chapuzas

    (@el-chapuzas)


    Buenas, en el pasado me pasó lo mismo y vuelvo ahora. Siempre suelo actualizar más tarde por si sale un Fix, y desde que actualicé el plugin me está tirando la web abajo debido al uso intenso de consultadas que se ríen de los dos Intel Xeon de 8 núcleos cada uno.

    La base de datos pesa 10 GB, y tras actualizar la web se me viene abajo cada 2×3 perdiendo miles de visitas, lo fácil sería prescindir de él, pero no quiero. El problema estaría en una consulta, a ver si me puedes decir, gracias.

    <<< SET timestamp=1507716623;
    SELECT p.ID AS id, p.post_title AS title, p.post_author AS uid, SUM(v.pageviews) AS pageviews, IFNULL(c.comment_count, 0) AS comment_count FROM wp_popularpostssummary v LEFT JOIN wp_posts p ON v.postid = p.ID LEFT JOIN (SELECT comment_post_ID, COUNT(comment_post_ID) AS comment_count FROM wp_comments WHERE comment_date_gmt > DATE_SUB(‘2017-10-11 12:10:12’, INTERVAL 6 DAY) AND comment_approved = 1 GROUP BY comment_post_ID) c ON p.ID = c.comment_post_ID WHERE 1 = 1 AND p.post_type IN(‘post’, ‘page’) AND p.post_date > DATE_SUB(‘2017-10-11 12:10:12’, INTERVAL 6 DAY) AND v.last_viewed > DATE_SUB(‘2017-10-11 12:10:12’, INTERVAL 6 DAY) AND p.post_password = ” AND p.post_status = ‘publish’ GROUP BY v.postid ORDER BY pageviews DESC LIMIT 10;

    • This topic was modified 7 years, 4 months ago by El Chapuzas.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter El Chapuzas

    (@el-chapuzas)

    Buenas, sólo uno de ellos está activo, pues se desactivó uno y se instaló otro creyendo que era el plugin que daba problemas de carga y no… era el de Popular Post.

    Tienen caché de 30 minutos, se actualiza todo, todo funciona bien, no se cachea portada para que las noticias se publiquen bien, blabla… lo único que no es que lea el número de visitas tras haber actualizado el plugin (y WordPress) lo que derivó en que comenzara a comer recursos como loco, activarle caché, el otro dato (que lo bajé a 30 para ver y nada) y dejar de funcionar a medias, que es raro que una cosa si la lea y la otra no…

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ok, let’s try this:

    1. Go to Settings > WordPress Popular Posts > Tools and set Data Sampling to 5 (let’s lower the value to test if WPP is able to update the views count or not).
    2. Go to the settings page of your caching plugin and flush/clear/delete its cache to make sure your pages pick up the new data sampling value.

    Keep an eye on the Stats page for a couple of hours and report back.

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Buenos días!!

    Bueno, sigue mal… ahora ha detectado 5 visitas… los comentarios si los está cogiendo al 100%, algo es algo… jajaja

    View post on imgur.com

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Ha comenzado a medir visitas, pero no sé… estará contando 1 de cada 1.000? jajaja

    View post on imgur.com

    Plugin Author Hector Cabrera

    (@hcabrera)

    In theory it should be tracking 1 out of every 5 visits (where 5 is your sampling rate value) and increase the views count by 5.

    I did notice that you have a bunch of Javascript errors on your site. I’m not sure how much impact that would have on WPP’s tracking script but I recommend having a look at that as well.

    Also, you may want to install Log Viewer to check for PHP errors (check the Installation section for additional instructions).

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Curiosamente, desde ayer quité el sampling rate, vamos, desactivado, y nada, sigue por el mismo camino, así que no sé que ha pasado tras la actualización…

    View post on imgur.com

    • This reply was modified 7 years, 4 months ago by El Chapuzas.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Did you also clear your caching’s plugin cache?

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Sí, y lo que está haciendo es ir perdiendo el número de vistas, comentarios se mantiene, pero volverá como antes, a no registrar ninguna vista pero si los comentarios.

    Plugin Author Hector Cabrera

    (@hcabrera)

    It’s hard to debug with both of us being in different timezones ??

    Alright, I’ll pay your site a visit to check again in a few hours.

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Pues nada, más de 30 horas sin el sampling y tampoco funciona.

    https://i.imgur.com/vDW8nSt.jpg

    Plugin Author Hector Cabrera

    (@hcabrera)

    And it should, but WPP is still unable to update the views count for some reason.

    Let’s go back to the basics:

    1. Disable all of your plugins, except for WPP.
    2. Visit one of your articles using a different browser.
    3. Go to WPP’s Stats page and see if it was able to register your visit.

    Please report back your findings.

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Que va wey… eso no lo puedo hacer, lo más lógico sería crear un backup, portar toda la info y probar, pero tampoco es que tenga ganas, supongo que tendré que prescindir del plugin y buscarme la vida xDDD

    Plugin Author Hector Cabrera

    (@hcabrera)

    You could create a “staging” version of the site where you could play around without impacting the “live” site, that’s what I do with my site and pretty much with my work projects as well (but yeah that would require to do all the things you said hehe).

    Anyways, if you decide you want to give it a shot let me know and I’ll help out.

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Problema tras actualizar a la última versión, me tira la web’ is closed to new replies.