• Resolved design_studio

    (@design_studio)


    Hello.
    Is there a way to manually change the cron job interval?

    Currently I have set the plugin to do weekly backups and scans, but the cron job handler starts every hour? Tried to change the options through the menus and to disable/enable the plugin in order to change them, but the cron job handler still starts every hour to check if there is need to do something and ignores lets say the weekly intervals.

    This is what I get:
    SUCCESS : Cronjob_Handler – Hourly cron handler got fired.
    SUCCESS : DB Backup – Scheduled backup is enabled. Checking if a backup needs to be done now…
    SUCCESS : Filescan – Scheduled fcd_scan is enabled. Checking now to see if scan needs to be done…

    Hope there is a solution.
    Thanks

    https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi design_studio check to see if you have some other plugin clashing with this plugin. Check the server logs and enable debug mode to see what is going on.

    Regards

    Plugin Contributor wpsolutions

    (@wpsolutions)

    I don’t quite understand the issue you are having. Do the automatic weekly scans and backups not work?
    Currently the plugin uses an hourly cron handler for all of the scanning and backup tasks. Even though it does an hourly check it doesn’t mean it will necessarily do one of the tasks. It has the intelligence to know if you have set something to be performed hourly/daily/weekly and will only perform the task when the right amount of time elapses.

    The logs you are seeing are normal.

    Thread Starter design_studio

    (@design_studio)

    Hello mbrsolution and wpsolutions and thank you for your answers. Actually the plugin is working fine and everything is perfect – I should of make this clear.
    I don’t have anything else which has set a cron job. The reason that I set everything on a weekly basis is that I am on a shared hosting, and I started to see the resources are getting limited warnings, and this appear next to a cron jobs which are executed exactly in the times when the plugin Cronjob_Handler is firing up – I went through all the logs for a week. Once I disable the plugin (which I obviously don’t want to do) all this stops, that’s why I thought it will be simple to ask if there might be a more intelligent sollution.

    That’s why I am asking is there a way to manually set the Cronjob_Handler to check like every 6 or 12 hours or even only once in 24 hours as my settings are set for a weekly basis. As I said the plugin is doing great job, however I believe with weekly basis backups settings,checking every hour is not needed. I suppose I have to change the hosting, but it will be too much and long process.
    Thank you for looking into that one more time

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi @design_studio you could search for a plugin that might be able to handle the cron jobs i.e. Plugin 1 and or Plugin 2.

    I have never tested any of these plugin but I guess you could give it a try.

    Regards

    Thread Starter design_studio

    (@design_studio)

    Thank you for the advise. I’ll do the reading and I’ll see what I can select. I just thought there could be an easy way to do it through the plugin itself

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi I look forward to your reply.

    Regards

    Thread Starter design_studio

    (@design_studio)

    Hi there again.
    I read about the plugins – both looked good, but…
    The first one I tried – Cronjob scheduler – gave me

    Plugin could not be activated because it triggered a fatal error.

    . Tried on a few other sites, not a very positive outcome. Anyway – lost enough time with it and just removed it! I didn’t want to install additional plugins anyway!

    Second one – WP control – worked ok. Cron jobs are listed and some are manageable, but not WP security ones. They are only listed.

    So again I believe there should be a way your cron jobs to be set for a week interval checks only if I’ve selected the option weekly DB backup or Scan. Otherwise the options given there in these menus are simply useless as the cron jobs are running all the time anyway.

    That my not be a problem for running a WP site on a private server or expensive, not shared hosting, but on a shared hosting gives at least to me problems, and especially when I specifically select week intervals i expect it to do that.
    Even if I disable these options the cron jobs are still running!!! Why?

    Anyway apart from that the plugin works great with the rest of the things.
    I looked through the plugin files and found the ones (at least visible ones) that handle the cronjobs and will try to modify it to the best of my knowledge, although I am not very good at that.

    I really believe there should be a more intelligent and easy to apply solution.

    Kind regards

    Plugin Contributor wpsolutions

    (@wpsolutions)

    I’m setting this to resolved because there is nothing wrong with the functionality.

    I also recommend that you don’t tamper with the cron settings.

    Thread Starter design_studio

    (@design_studio)

    Hi there again. With all my respect but why do you think that the issue is resolved?
    I’ll quote myself:

    Anyway apart from that the plugin works great with the rest of the things.

    To every further explanation I am giving to you why it is not fixed and not performing as it should be, you are only answering with questions or posts which are not relevant! I believe that it is unacceptable for you to send me to another plugin to solve issues with your plugin, which as I said by the way do not fix anything?
    I’ll quote myself again as I think you haven’t look at the last post I wrote:

    So again I believe there should be a way your cron jobs to be set for a week interval checks only if I’ve selected the option weekly DB backup or Scan. Otherwise the options given there in these menus are simply useless as the cron jobs are running all the time anyway.

    Just a little comment: What is the point of having selection menus if whatever we do there it doesn’t matter. Looking at the code the first thing the plugin does once activated is to start these cron jobs. Why? I haven’t selected anything yet at that point! Also as we can see from your code even if I disable the options relevant to the issue and say thanks I don’t need them, the cron jobs are still running for that particular options – it doesn’t matter if I deactivate, activate and whatever else I do to apply the settings, this is the behavior of the plugin. Why my choices haven’t been applied?

    While I am not saying that this is a bad behavior for some configurations, on my hosting it triggers resource limits, and I am trying intelligently as you said in post No.3 to control the plugin behavior on my hosting, on my installation, on my site.

    I am not expecting intelligent solution, and I also don’t expect there to be one, or definitely not saying that you will be happy to alter your plugin code in order to modify the specific issue/setting either for free or after relevant contribution.
    That’s why I simply asked if you check the title of the topic: Can I manually change the cron job interval?

    You could’ve just say No.
    Really, I don’t see the point of your comments!!

    As a plugin contributor I suppose you have the right to set MY topic as resolved, but as I said for me while there is no definitive solution explained by you or another skilful person on the question, it is NOT resolved!

    Thank you for taking the time to read my post again.

    Plugin Contributor wpsolutions

    (@wpsolutions)

    Take it easy bro…..no offense was meant.
    I didn’t recommend any other plugins – I simply explained that currently the design of our architecture is such that the cron checks are done using the smallest granularity which is the hourly check. This doesn’t mean that you cannot set your scanning or DB backup tasks to hourly, daily, weekly etc.

    We are not at this stage going to change this behaviour because there are too many other higher priority things on our TODO list and also for the fact that this is not an issue.

    The cron checks are not very resource intensive – what makes you think that these checks are causing resource issues on your server?

    Thread Starter design_studio

    (@design_studio)

    I am taking it easy…don’t worry about that. I just tried to be as descriptive as possible. The answer you give me now – Thanks! – is the kind of answer I was expecting. I am not asking you to change your priorities, this was never my intention. I’ll obviously change or disable the cron jobs as this is my requirement only.

    As I explained in the beginning the resource issues only appear at the same time when the cron jobs from the plugin are started – I checked the plugin logs and my server logs to match the times to seconds. I have no other cron jobs set, or plugins which rely on that functionality, basically I don’t have lots of plugins at all. The site I am experiencing that is a personal blog with few visits and most of the visits of the bots are blocked. Using your plugin also helps to keep bad visitors away.

    So my assumptions are based on that. Once I disable and remove the plugin, and clear my database and the cron jobs are gone, the resource issues disappear!

    As I said in the beginning as well it might be the hosting is limiting too much resources, but I don’t want to spend hundreds on a hosting for a personal blog.

    Thanks again for your last answer – it is much appreciated!

    Kind regards

    Plugin Contributor wpsolutions

    (@wpsolutions)

    Ok thanks for the clarification.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Can I manually change the cron job interval?’ is closed to new replies.