Support » Plugin: Post Views Count (Support caching plugins!) » Problem with database

  • Bonjour,

    Merci pour cet excellent plugin qui me permets enfin de compter efficacement le nombre de vues d’un article.

    Par contre, je viens de m’apercevoir que la taille de la base de données avait tendance a augmenter de façon exponentielle.

    En effet, dans la table wp_options, j’ai au moins 40000 lignes avec :
    – _transient_timeout_baw_count_views-xxxxxxxxxx
    – _transient_baw_count_views-xxxxxxxxxx

    Et cela augmente tous les jours.

    Peut-on supprimer ces lignes ? A quoi servent-elles ?
    Ne peuvent-elles pas se supprimer automatiquement ?

    Merci pour vos réponses.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Julio Potier



    avez vous mis un délai entre le temps de recomptage sans les options ?



    Je vous remercie pour votre réponse rapide.
    Voici un aperçu du paramétrage :

    Est-il possible d’épurer les tables wp_options et wp_postmeta sachant que je ne souhaite garder que le compteur total (où j’ai ajouté le hack pour récupérer le compteur WP-PostViews) et le compteur hebdomadaire ?


    Plugin Author Julio Potier


    Oups i forgot to talk in english here (sorry Mika!)

    Ok so, the “900 sec” parameter is guilty, and so am i.

    I’ll have a look asap.

    Thanks for your interest!

    I look forward to hearing from you.
    Especially for cleaning the database.

    thank you


    Could you find a solution?
    Thank you.

    Not sure if the 900 seconds is necessarily the cause as I just discovered this problem on 1 of our 2 popular blogs. Both blogs have identical settings for this plugin and both run on WP 3.5.1 (upgraded from 3.4.x).

    One blog shows nothing when I search the database for the rows mentioned below, but the other had over 80,000 each of these two rows:


    They both have the “Time between counts” set to 0 and all other plugin settings are identical.

    I deleted all those rows from the misbehaving blog, but it’s now adding them back slowly again. The other blog is still showing no new rows.

    Only discovered this after the database update for v3.5.1 kept failing and after much searching it was getting stuck reading 161,000 rows from wp_options. 🙂


    Regarding cleaning the database as David asked. What I did was this and can’t see anything broken yet.

    DELETE FROM  'wp_options' WHERE  'option_name' LIKE  '%_transient_timeout_baw_%'
    DELETE FROM  'wp_options' WHERE 'option_name' LIKE  '%_transient_baw_count_views%'


    [Sorry, this was a double post – double clicked the submit button]

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with database’ is closed to new replies.