Awo Rewards cron


  • Default avatar
    sklep    
     6 years ago  last edited 6 years ago
    0

    Hello


    My server is slowed down by awo rewards cron. When I turn cron off my website starts working well. With cron my website is slowing every few minutes, In server logs I have warning:

    No such file or directory in ....public_html/administrator/components/com_aworewards/helpers/cron.php on line 111\n'

    I have changed 'Cron Key' and I think that is better but still I have warning in logs.

    What can I do?

    Radek


    Hello


    Will Awo Rewards work if the Poorman's Cron is turned off?

    I have tested many times and when cron is working my website is frozen for about 2-3 minutes


    Radek


  • Your avatar
    seyi    
     6 years ago
    0

    If you turn off poor man's cron, and instead opt to add the cron url to  your server, AwoRewards will still work fine.

    If you turn off poor man's cron and do not add the cron then there are situations were rewards may not be triggered.  But really it should not freeze your site for 2-3 minutes, there may be something going on within the cron that needs to be looked at. 

    On line 111, it is trying to delete any cron files created by AwoRewards cron.  this is in your /tmp directory.  Have a look there, do you see any aworewards files?
  • Default avatar
    sklep    
     6 years ago
    0

    seyi @ Jun 25, 2018, 10:53:17 AM
    If you turn off poor man's cron, and instead opt to add the cron url to  your server, AwoRewards will still work fine.

    If you turn off poor man's cron and do not add the cron then there are situations were rewards may not be triggered.  But really it should not freeze your site for 2-3 minutes, there may be something going on within the cron that needs to be looked at. 

    On line 111, it is trying to delete any cron files created by AwoRewards cron.  this is in your /tmp directory.  Have a look there, do you see any aworewards files?
    Yes, I can see in /tmp directory 2 aworewards files:

    aworewards_cron.1529929689

    awocoupon_cron.1529925500

  • Default avatar
    sklep    
     5 years ago
    0

    Hello Seyi


    I still have a problem with aworeward's cron.

    I would like to put the cron into DA but as php not a http request. Is it possible to run specific php file?

    /usr/local/bin/php /home/admin/domains/domain.com/public_html/script.php


    Radek

  • Your avatar
    seyi    
     5 years ago
    0

    You could use wget to trigger it.
  • Default avatar
    sklep    
     5 years ago
    0

    Yes, I know but it still takes http resources. I wanted to replace http by PHP and release http which delays for about minute while aworewards cron is working.


    So I understand there is no such option.


    Radek

  • Your avatar
    seyi    
     5 years ago
    0

    Hello,

    There is no official option for this.  Would something like this work:
    Section 'a php alternative to wget'

  • Default avatar
    sklep    
     5 years ago  last edited 5 years ago
    0

    Hello


    I have used wget and it works perfectly (i wasn't sure) without any delaying. I dont know why from your component couses some delays (about 1 up to 2 minutes) but as wget it works very well.

    Radek

  • Your avatar
    seyi    
     5 years ago
    0

    That seems a long time to run, would have to debug the cron directly to find out what is going on.