• Resolved vancebell

    (@vancebell)


    Since updating Akismet to 3.0.0 at the end of April, the size of the comments and commentmeta database tables have grown exponentially to 27MB and 90MB respectively. PHPMyAdmin shows around 95% of these amounts as Overhead. The plugin is set to “Silently discard the worst and most pervasive spam.”

    https://wordpress.org/plugins/akismet/

Viewing 9 replies - 1 through 9 (of 9 total)
  • I would consider this a good thing, as it means that Akismet is finding and deleting a lot of spam. When a record is deleted in MySQL, it is just marked as deleted, not physically removed from the database. To do that, you have to optimize the table. In PHPMyAdmin, click the check select box next to the table and select Optimise Table from the “With selected” drop down list.

    I got the same issue here (Akismet 3.0.2) – and optimizing/repairing the database has no effect: The database-entries remain as they are. That’s a pretty serious issue, since it bloats up the database and forces me to deal manually with those entries. Any comment from the developers’ side?

    Plugin Author Christopher Finke

    (@cfinke)

    I haven’t seen this behavior on any of my test sites, but I’ll investigate tomorrow and follow up with my findings.

    Any findings yet?

    I think I have to specify the problems occuring on my WP-installation:

    Akismet won’t delete database-entries generated by the contact form that comes with Jetpack (it’s NOT a problem with comments!). Though they are marked as post_status spam in the wp_posts-table, they remain there even after optimizing and/or repairing the database table.

    In wp_postmeta there are three entries for each of the entries marked as spam (_feedback_extra_fields, _feedback_akismet_values and _feedback_email). The only way to get rid of all of these entries in wp_posts and wp_postmetag seems to be to delete them manually, which is a lot of work with ten to twenty of them each day.

    Plugin Author Christopher Finke

    (@cfinke)

    I think deleting the spam contact form entries would be Jetpack’s job, but I’ll talk to the Jetpack developers and decide which plugin should handle it.

    For situations where comments and comment meta were not being deleted, this changeset should fix that issue: https://plugins.trac.wordpress.org/changeset/1003382/akismet It will be included in version 3.0.3.

    Thank you for looking into this, Christopher! It would be nice of you to give notice when you find out something new!

    Plugin Author Christopher Finke

    (@cfinke)

    Theolobias: It appears that Jetpack already does delete old spam feedbacks: https://github.com/Automattic/jetpack/blob/b66935575ed3b291b28b5df20af5e295d6645c94/modules/contact-form/grunion-contact-form.php#L1758

    Do you have WP cron disabled? (If you’re not familiar with it, then the answer is likely no.) If so, that would need to be enabled for this to work. If not, then it looks like this is a Jetpack issue and your best bet would be filling out this form: http://jetpack.me/contact-support/

    I’ll also send a note to the Jetpack developers to look at this thread in case there’s an obvious fix that I’m not familiar with.

    WP cron is enabled, so this can’t be the issue here. My first suspicion was that one of my other plugins (i.e. Cachify) was interfering with Akismet and/or Jetpack, but disabling all of them (except Akismet and Jetpack, obviously) didn’t change this behaviour. I already opened up a support thread at the Jetpack support forum, but there hasn’t been a response yet. Thank you for looking into this!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    For reference, here is the related thread.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Akismet 3.0.0 not cleaning up data in database’ is closed to new replies.