• Resolved Efrosoula

    (@efrosoula)


    I do not know if it will make sense to you but after the last update permanently deleting individual posts from trash or emptying the trash altogether takes ages.
    Permanently deleting 5-6 items takes 100-120 sec and after that you get the WSOD (my max php script exec time set 120sec). If you select 3-4 items, there is just enough time to delete them.
    No errors in your logs, no errors in php log, no log in my slow queries. All other operations are normal.
    I wonder if it is something we must get used to live with or a lurking bug somewhere.
    It does not seem to matter if server is loaded or not.
    Needles to say one more time congrats for your work.
    I’ll be happy to supply any additional info on your request.
    Thank you

    side note:
    MC trashed >180 posts, blog posts ~1000 posts.
    Also checked and optimized all tables for errors with phpmyadmin.

    http://wordpress.org/plugins/mycurator/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author mtilly

    (@mtilly)

    I tried it out on several of my test sites and couldn’t recreate this problem. We only perform any processing on delete if the post was originated by MyCurator (ie Made Live from the training posts) or is a Training Post. Try deleting some regular posts (drafts) that you create and have nothing to do with MyCurator. See if they take as long.

    If not, we do two things on the delete. First, if it is a MyCurator originated post or training post, we remove any images from the media library that are associated with it. We use standard core WP functions to do this so I can’t imagine this being a problem.

    Next we have to delete the saved page text from a separate file – wp_sl_pages. Using phpmyadmin you could check and make sure that this file has an index on the field sl_post_id. If that index was gone, it could slow down the delete.

    Thread Starter Efrosoula

    (@efrosoula)

    mtilly, you’re a treasure, your replies are faster than thunder.
    I have same good and some bad news.
    The good ones are that either deleting MC trash or WP trash it takes the same long time.
    I should have noticed it before bothering you but normally I do not trash normal posts in WP trash so only the MC trash gets filled up.
    The bad ones are that I’ll have to dig deep to isolate the root of the problem.

    Now, while searching for the problem I noticed that my wp_sl_pages holds ~1000 records – why?. I’ve checked that records are deleted when MC trash is emptied, but they are not when a training post is made live. So correct me if I’m wrong but shouldn’t it also delete the original pages in sl_pages?
    In case I’m mistaken then how is this table maintained from forever growing?
    Is it ok to manually empty this table with no implications?
    Thank you Thank you

    PS I am marking this as resolved and when and if I discover the root of the problem I’ll inform you accordingly.

    Plugin Author mtilly

    (@mtilly)

    Yes, we do keep the full text after the post is live. This file will only grow with your live posts, and most hosts give you plenty of space for files. It is also indexed so it will not slow anything down, and is not used on your live site so won’t impact your page load for visitors.

    We’ve kept the full article text around because you may want to edit the post in the future and have access to the original article text.

    Also, web pages are always disappearing. One of our development projects is to look at replacing your link to the original web page if it disappears with a link to this ‘Readable Page’. That way your post can still reference the article and display it even if the original gets taken down.

    We will also investigate an option to remove saved pages from the file for live posts for those who would like to.

    Thread Starter Efrosoula

    (@efrosoula)

    Great mtilly.
    Isolated the problem by disabling (temporarily while emptying trash) the wysija plugin. Will address the problem to its authors…

    I also had this problem, and cured it by disabling Wysija. I have the premium version, and will also contact them.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permanently deleting trash takes forever’ is closed to new replies.