Plugin Directory

Changeset 1517362


Ignore:
Timestamp:
10/18/2016 01:39:22 PM (9 years ago)
Author:
123teru321
Message:

1.4.4

Location:
cfiltering
Files:
140 added
5 edited

Legend:

Unmodified
Added
Removed
  • cfiltering/trunk/collaborative-filtering.php

    r1517312 r1517362  
    55  Description: Recommendation plugin using collaborative filtering
    66  Author: 123teru321
    7   Version: 1.4.3
     7  Version: 1.4.4
    88  Author URI: http://technote.space/
    99  Text Domain: CollaborativeFiltering
     
    2727
    2828//plugin version
    29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.4.3' );
     29define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.4.4' );
    3030
    3131//required php version
  • cfiltering/trunk/readme.txt

    r1517312 r1517362  
    44Requires at least: 3.9.13
    55Tested up to: 4.6.1
    6 Stable tag: 1.4.3
     6Stable tag: 1.4.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232
    3333== Changelog ==
     34
     35= 1.4.4 =
     36* 2016-10-18  Modified cron behavior
    3437
    3538= 1.4.3 =
  • cfiltering/trunk/services/calculate.php

    r1517312 r1517362  
    1212    protected function __construct()
    1313    {
    14         if ( !wp_next_scheduled( 'cf_calculate_event' ) && !wp_next_scheduled( 'cf_calculate_hook' ) ) {
     14        if ( !wp_next_scheduled( 'cf_calculate_event' ) ) {
    1515            wp_schedule_single_event( time() + $this->apply_filters( 'calc_interval', COLLABORATIVE_FILTERING_CALC_INTERVAL ), 'cf_calculate_event' );
    1616        }
    1717        add_action( 'cf_calculate_event', function () {
    1818            $this->check_progress();
    19         } );
    20         add_action( 'cf_calculate_hook', function () {
    21             $this->execute();
    2219        } );
    2320
     
    5249    {
    5350        $this->clear_event();
    54         if ( !wp_next_scheduled( 'cf_calculate_hook' ) ) {
    55 
    56             if ( $this->get_start() > 0 ) {
    57                 $this->set_start( -1 );
    58             }
    59             $this->set_time( 0 );
    60             wp_schedule_single_event( time(), 'cf_calculate_hook' );
    61         }
    62         spawn_cron( time() );
     51
     52        $this->execute();
    6353    }
    6454
    6555    private function check_progress()
    6656    {
    67         if ( wp_next_scheduled( 'cf_calculate_hook' ) ) {
    68             return;
    69         }
    70 
    7157        $time = $this->get_time();
    7258        $now = time();
     
    8470        $this->set_time( time() );
    8571
    86         wp_schedule_single_event( time(), 'cf_calculate_hook' );
     72        $this->execute();
    8773    }
    8874
  • cfiltering/trunk/services/clear.php

    r1517312 r1517362  
    1717        add_action( 'cf_clear_event', function () {
    1818            $this->check_progress();
    19         } );
    20         add_action( 'cf_clear_hook', function () {
    21             $this->execute();
    2219        } );
    2320
     
    4845    private function check_progress()
    4946    {
    50         if ( wp_next_scheduled( 'cf_clear_hook' ) ) {
    51             return;
    52         }
    53 
    5447        $time = $this->get_time();
    5548        $now = time();
     
    5952        $this->set_time( time() );
    6053
    61         wp_schedule_single_event( time(), 'cf_clear_hook' );
     54        $this->execute();
    6255    }
    6356
  • cfiltering/trunk/update.json

    r1517312 r1517362  
    33  "slug": "cfiltering",
    44  "download_url": "https://github.com/123teru321/CFiltering/archive/master.zip",
    5   "version": "1.4.3",
     5  "version": "1.4.4",
    66  "tested": "4.6.1",
    77  "homepage": "https://technote.space/",
Note: See TracChangeset for help on using the changeset viewer.