• 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 15 replies - 1 through 15 (of 28 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hey there!

    Since a similar topic came up a few days ago -and to not repeat myself- I’m going to ask you to please read this.

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Gracias.

    Con unas 90K de impresiones diarias, unas 45K de sesiones, y sobre 3.000 comentarios al día, que nivel me recomiendas? pues entiendo que, por lo que le has comendado, 100 = 250K entonces 1 = 2.5K, o no sé si es así, a ver si me podrías echar una mano, que en varios a?os que llevo usando el plugin esta es la segunda vez que me da la lata, gracias.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Using a Rule of Three:

    ( 90000 x 100 ) / 250000 = 36

    So in theory a Sampling Rate of 36 should be a good starting point in your case. Tweak the value if you still see performance issues.

    As a side note: a 10 GB database is… huge. Unless you have a ton of content in there or you’re running a multisite setup, you may want to take a closer look.

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Ok gracias, había puesto 36.

    Limite de registro (desactivado) podría estar implicado?

    Si guardo datos por 30 días, quiere decir que por ejemplo, en mi sección de reviews más vistas, sólo se verán las reviews más vistas de los últimos 30 días?

    Gracias crack (mi inglés es una M, por eso tiro del espa?ol aunque traduciendo manejo jajaja)

    Plugin Author Hector Cabrera

    (@hcabrera)

    Si guardo datos por 30 días, quiere decir que por ejemplo, en mi sección de reviews más vistas, sólo se verán las reviews más vistas de los últimos 30 días?

    Yes, that’s correct. Data older than 30 days -in your case- will be automatically deleted every day at midnight. This also means that if you try to set a custom time range (eg. most popular of the last 90 days), you’ll only see data from the past 30 days.

    Gracias crack (mi inglés es una M, por eso tiro del espa?ol aunque traduciendo manejo jajaja)

    Don’t mention it ?? And thanks for being such a loyal user!

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Normal que tenga 10TB, llevo usando tu plugin desde el 2013… vamos, 5 a?os de información (en ese tiempo, más de 20.000 artículos y millones de comentarios)… tendré que hacer lo que comentas muy a mi pesar.

    Si selecciono 30 días, automáticamente se liberará el espacio no?

    Muchas gracias crack, como la última vez que me ayudaste, paso a mandarte una donación por las molestias.

    • This reply was modified 7 years, 4 months ago by El Chapuzas.
    • This reply was modified 7 years, 4 months ago by El Chapuzas.
    Thread Starter El Chapuzas

    (@el-chapuzas)

    Buenas compi, tras hacer todo eso, no funciona bien, no está contabilizando las visitas… a ver si me puedes decir a qué es debido.

    En 24 horas:

    [img]https://i.imgur.com/6T7BJis.jpg[/img]

    Plugin Author Hector Cabrera

    (@hcabrera)

    How many visitors did you receive in the past 24 hours?

    Thread Starter El Chapuzas

    (@el-chapuzas)

    40.000, y ya no reconoce nada… he tenido que desactivarlo, borré caché, lo quité de portada, y lo tengo activado, a ver si recopila información, pero no, sólo está visualizando comentarios.

    Parece que el tráfico hacia tu sitio es un poco ligero en este momento.
    /iexcl;Comparte un poco y regresa luego!
    ” en Most viewed y Trending, no sale ni una noticia, solo contabiliza numero de comentarios y mantiene el Hall of Fame.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Your Sampling Rate is set to 36 (for around 90K visits per day) and you got -50% less visits in the last 24 hours, so this is to be expected. From the Wiki:

    How does Data Sampling work?

    Every time someone visits one of your posts / pages, WPP will generate random number between 1 and N, being N the sample rate. If the random number turns out to be 1, then the views count of that post / page will be incremented by N.

    The general idea is that in theory it should take N tries to hit number 1 (the probability of that is 1/N). In the long run, it’ll increase the views count value by 1 for each visit without constantly querying the database.

    But wouldn’t that have an impact on the accuracy of the statistics?

    Yes, the count may be off at first but the more visits that come through the more accurate this will be overall.

    See: Data Sampling.

    Also:

    (…) in theory a Sampling Rate of 36 should be a good starting point in your case. Tweak the value if you still see performance issues.

    In short: be patient. You’ve been only using Data Sampling for one day, it’s not enough time to know if the current Sampling Rate value is appropiate for you or not. Give it a couple of days and if the data is still not accurate enough then use a different Sampling Rate value and repeat until you find the right one.

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Pero me parece raro que no de ningún dato, a mi me interesa que me actualice los datos, por ejemplo, cada 30 minutos, no a las 24 horas :/

    Thread Starter El Chapuzas

    (@el-chapuzas)

    Nada, oficialmente se ha roto…

    View post on imgur.com

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hola Borja!

    Alright, please do the following:

    1. Go to Settings > WordPress Popular Posts.
    2. Add this to the address bar of your browser: &tab=debug (eg. https://www.example.com/wp-admin/options-general.php?page=wordpress-popular-posts&tab=debug).
    3. Copy all the info on that screen and paste it here.
    Thread Starter El Chapuzas

    (@el-chapuzas)

    WordPress Popular Posts
    Debug

    PHP version: 7.0.5

    PHP extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, json, mbstring, mcrypt, standard, mysqlnd, pcntl, mysqli, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, imap, SimpleXML, soap, sockets, exif, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, Zend OPcache

    Database version: 10.0.32-MariaDB-0+deb8u1

    InnoDB availability: DEFAULT

    WordPress version: 4.8.2

    Installed plugins: Ad Blocker Notify Lite 2.2.3, AddToAny Share Buttons 1.7.19, Adjustly Nextpage 0.1, AJAX Thumbnail Rebuild 1.12, Akismet Anti-Spam 4.0, Amazon Auto Links 3.4.7, Amazon Auto Links Pro 3.0.8, AMP 0.5.1, Analytics Code Integration 1.2.3, Autoptimize 2.2.2, Contact Form 7 4.9, Cookie Consent 2.3.4, CopyLink 1.1, Custom (AMP) Accelerated Mobile Pages 1.0.6, DB Cache Reloaded Fix 2.3, Disqus Comment System 2.87, Easy Content Slider 1.3, Easy Watermark 0.6.0, Facebook Members 7.2, Facebook Video Embed 1.0.2, GoCodes 1.3.5, Gonzales 1.0.3, iThemes Security 6.6.1, JSON API 1.1.1, Login No Captcha reCAPTCHA 1.1.10, Matt’s Developer Tools 2.0.0, P3 (Plugin Performance Profiler) 1.5.3.9, SEO Friendly Images 3.0.5, Simple Adblock Notice 3.0, Simple Lightbox 2.6.0, Skimlinks 1.2.4, SSL Insecure Content Fixer 2.4.0, Stylish Popular Posts 1.1, Tapatalk for WordPress 1.4.0, ThemeFuse Maintenance Mode 1.1.3, WooThemes Toolbar 1.0, WordPress Popular Posts 4.0.5, WP-Cleanup 1.1.0, WP-Optimize 2.1.1, WP-Paginate 2.0.1, WPide 2.4.0, WP Rocket 2.10.9, WP Super Cache 1.5.7.1, WP to Twitter 3.2.19, WP Tweets PRO 1.9.3, Yoast SEO 5.5.1, YouTube Embed 5.0.3

    Gracias.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks!

    Ok, it seems you have at least two different caching plugins installed there: WP Rocket and WP Super Cache. What’s the cache expiry time of these two plugins?

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