• Resolved Daniele67

    (@daniele67)


    Hello, how can I definitively disable the ngg_delete_expired_transients cron?

    No matter what I do, after some days the cron is inevitably set to 900 seconds.

    If I delete it reappears in cron schedules. If I change the interval it is set to 900 seconds again shortly after.

    Please let me know. Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Daniele67

    (@daniele67)

    Hello, is the cron question so complicated? Thank you.

    • This reply was modified 5 years, 2 months ago by Daniele67.

    Apologies @daniele67,

    I know it does not excuse but we have been really busy with our last release.
    We have shared that back with the dev team.
    We’ll keep you posted.

    fpwordpress

    (@flaviowordpress)

    Yes I have the same problem too, when do you think you can solve, thanks???

    Apologies @daniele67,

    Here is some feedback from the developers:

    We provide two constants to control our cron jobs:

    define('NGG_CRON_SCHEDULE', 900);

    Setting the above constant to a value other than 900 allows you to adjust how often the cron jobs run. But there’s also:

    define('NGG_CRON_ENABLED', TRUE);

    Let us know if that works for you.
    We are happy to help!

    Thread Starter Daniele67

    (@daniele67)

    Hello @gabyimagely, thanks for your reply.

    I have added

    define('NGG_CRON_SCHEDULE', 2592000); // 30 days

    in my wp-config.php and in the WP dashboard, cron control panel, the ngg_delete_expired_transients has been re-scheduled with this delay.

    Let’s see now if it remains as it is, also when the plugin is updated, because before this attempt any effort to change the schedule or delete the cron were overwritten shortly after.

    Hello @daniele67,

    This value shouldn’t be overwritten because it is in your wp-config.php file.
    And you can check our changelog; every change is listed there.
    As far as I know, we don’t have any editions on transients.
    https://www.imagely.com/wordpress-gallery-plugin/changelog/

    Please, keep us posted. We are happy to help!

    Thread Starter Daniele67

    (@daniele67)

    Hello @gabyimagely,

    Sorry, I do not understand completely.

    Is there anything wrong with this solution?

    For me this is the only thing that has worked until now to control ngg_delete_expired_transients.

    Thank you.

    Hi @daniele67

    Apologies, perhaps I didn’t use the correct words.
    The solution I have provided was made by our leading developer.
    There is nothing wrong with it.
    Please, let us know if that worked for you.

    Because it has been a month or more since your last reply, I am going to mark this as resolved as I assume you have found a solution. Please feel free to reply again if you still have questions.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Disable cron ngg_delete_expired_transients’ is closed to new replies.