Results 1 to 10 of 10

Thread: Please Advise: CRON Expired Checks Set Hourly. Continues To Check Daily.

  1. #1
    Thread Starter
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts

    Question Please Advise: CRON Expired Checks Set Hourly. Continues To Check Daily.

    Please Advise: CRON Expired Checks Set Hourly. Continues To Check Daily. Image of wp_options table. CP 3.19 Theme effectively writes correct option to DB.

    http://screencast.com/t/pVrS2g10om

    However,
    Code:
    if(!get_option('cp_ad_expired_check_recurrance')) $recurranceValue = 'daily';
        else $recurranceValue = get_option('cp_ad_expired_check_recurrance');
        wp_schedule_event(strtotime('today + 1 hour'), $recurranceValue, 'cp_ad_expired_check');
        add_option('cp_ad_expired_check', 'yes');
    this code in theme-cron.php says if the option is not set to daily, to schedule the event to one hour past GMT 00:00, being 01:00. This effectively, eliminates any other options to check for expired ads, other than 'today + 1hour'. Result is in this image of Cron Tab under System Info in backend of WP. http://screencast.com/t/SavtjZ3QhhK

    Please verify my findings and give me the correct code to permit me to set my expired checks to hourly, and twice daily, thank you. I suppose this would work, would it not? (When Hourly option is selected and in DB as see in above first image)

    Code:
    if(!get_option('cp_ad_expired_check_recurrance')) $recurranceValue = 'hourly';
        else $recurranceValue = get_option('cp_ad_expired_check_recurrance');
        wp_schedule_event(strtotime('today + 1 hour'), $recurranceValue, 'cp_ad_expired_check');
        add_option('cp_ad_expired_check', 'yes');
    When in doubt: Read, Ask, Do. G+

  2. #2
    Thread Starter
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    When in doubt: Read, Ask, Do. G+

  3. #3
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. The Following User Says Thank You to dimitris For This Useful Post:

    seoagent (November 30th, 2012)

  5. #4
    Thread Starter
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    When in doubt: Read, Ask, Do. G+

  6. #5
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #6
    Thread Starter
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    When in doubt: Read, Ask, Do. G+

  8. #7
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #8
    meloniq's Avatar
    Join Date
    May 2011
    Location
    Poland
    Posts
    1,073
    Thanks
    17
    Thanked 178 Times in 159 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Attached Files Attached Files
    Have Clipper website?! --> You need coupons importer!!!
    See available integrations with affiliate networks: Commission Factory, CJ Affiliate, Daisycon, Rakuten LinkShare, ShareASale, Tradedoubler, TradeTracker

    Payment gateways: Bitpay, Dotpay, PayU PL, Przelewy24, Skrill

    me @ AT || meloniq.net

  10. #9
    Thread Starter
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    When in doubt: Read, Ask, Do. G+

  11. #10
    Thread Starter
    seoagent's Avatar
    Join Date
    Jul 2012
    Location
    Edmonton, AB, Canada
    Posts
    660
    Thanks
    136
    Thanked 86 Times in 74 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    When in doubt: Read, Ask, Do. G+

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to set CRON JOBS to run TWCE DAILY or HOURLY?
    By talent in forum Report ClassiPress Bugs
    Replies: 6
    Last Post: September 16th, 2012, 04:19 PM
  2. Problem with cron job and expired adds
    By seavain in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: June 21st, 2012, 05:18 PM
  3. [SOLVED] Run Ads Expired Check Now not working
    By kdubose in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: January 25th, 2012, 06:09 PM
  4. [SOLVED] Daily views not resetting - total and daily keep the same
    By amersvoort in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: January 10th, 2012, 11:45 AM
  5. How Classipress checks a date an expire an add?
    By blackhawk in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: January 12th, 2011, 05:02 PM