Changeset 1517362
- Timestamp:
- 10/18/2016 01:39:22 PM (9 years ago)
- Location:
- cfiltering
- Files:
-
- 140 added
- 5 edited
-
tags/1.4.4 (added)
-
tags/1.4.4/.htaccess (added)
-
tags/1.4.4/README.md (added)
-
tags/1.4.4/ajax.php (added)
-
tags/1.4.4/apis (added)
-
tags/1.4.4/apis/access.php (added)
-
tags/1.4.4/apis/check-ajax.php (added)
-
tags/1.4.4/apis/get-tests.php (added)
-
tags/1.4.4/apis/reflect-results.php (added)
-
tags/1.4.4/apis/related-post.php (added)
-
tags/1.4.4/collaborative-filtering.php (added)
-
tags/1.4.4/controllers (added)
-
tags/1.4.4/controllers/001-setting.php (added)
-
tags/1.4.4/controllers/100-action.php (added)
-
tags/1.4.4/controllers/900-log.php (added)
-
tags/1.4.4/controllers/index.php (added)
-
tags/1.4.4/db-config.php (added)
-
tags/1.4.4/emblemmatic-c-filtering-logo-58.png (added)
-
tags/1.4.4/functions.php (added)
-
tags/1.4.4/index.php (added)
-
tags/1.4.4/languages (added)
-
tags/1.4.4/languages/CollaborativeFiltering-ja.mo (added)
-
tags/1.4.4/languages/CollaborativeFiltering-ja.po (added)
-
tags/1.4.4/lib (added)
-
tags/1.4.4/lib/apis (added)
-
tags/1.4.4/lib/apis/nonce.php (added)
-
tags/1.4.4/lib/base (added)
-
tags/1.4.4/lib/common (added)
-
tags/1.4.4/lib/common/010-defines.php (added)
-
tags/1.4.4/lib/common/030-base-class.php (added)
-
tags/1.4.4/lib/common/040-db.php (added)
-
tags/1.4.4/lib/common/050-db_config.php (added)
-
tags/1.4.4/lib/common/080-model-base.php (added)
-
tags/1.4.4/lib/common/090-api-base.php (added)
-
tags/1.4.4/lib/common/100-controller-base.php (added)
-
tags/1.4.4/lib/common/110-api-loader.php (added)
-
tags/1.4.4/lib/common/120-controller-loader.php (added)
-
tags/1.4.4/lib/common/130-service-base.php (added)
-
tags/1.4.4/lib/library (added)
-
tags/1.4.4/lib/library/YUI-CSS-compressor (added)
-
tags/1.4.4/lib/library/YUI-CSS-compressor/cssmin.php (added)
-
tags/1.4.4/lib/library/jsmin-php (added)
-
tags/1.4.4/lib/library/jsmin-php/README.md (added)
-
tags/1.4.4/lib/library/jsmin-php/jsmin.php (added)
-
tags/1.4.4/lib/library/jsmin-php/test (added)
-
tags/1.4.4/lib/library/jsmin-php/test/setup.php (added)
-
tags/1.4.4/lib/library/jsmin-php/test/test.php (added)
-
tags/1.4.4/lib/library/jsmin-php/test/utf8-with-bom.js (added)
-
tags/1.4.4/lib/library/plugin-update-checker (added)
-
tags/1.4.4/lib/library/plugin-update-checker/README.md (added)
-
tags/1.4.4/lib/library/plugin-update-checker/composer.json (added)
-
tags/1.4.4/lib/library/plugin-update-checker/css (added)
-
tags/1.4.4/lib/library/plugin-update-checker/css/puc-debug-bar.css (added)
-
tags/1.4.4/lib/library/plugin-update-checker/debug-bar-panel.php (added)
-
tags/1.4.4/lib/library/plugin-update-checker/debug-bar-plugin.php (added)
-
tags/1.4.4/lib/library/plugin-update-checker/github-checker.php (added)
-
tags/1.4.4/lib/library/plugin-update-checker/js (added)
-
tags/1.4.4/lib/library/plugin-update-checker/js/debug-bar.js (added)
-
tags/1.4.4/lib/library/plugin-update-checker/languages (added)
-
tags/1.4.4/lib/library/plugin-update-checker/languages/plugin-update-checker-fr_FR.mo (added)
-
tags/1.4.4/lib/library/plugin-update-checker/languages/plugin-update-checker-fr_FR.po (added)
-
tags/1.4.4/lib/library/plugin-update-checker/languages/plugin-update-checker-hu_HU.mo (added)
-
tags/1.4.4/lib/library/plugin-update-checker/languages/plugin-update-checker-hu_HU.po (added)
-
tags/1.4.4/lib/library/plugin-update-checker/languages/plugin-update-checker.pot (added)
-
tags/1.4.4/lib/library/plugin-update-checker/license.txt (added)
-
tags/1.4.4/lib/library/plugin-update-checker/plugin-update-checker.php (added)
-
tags/1.4.4/lib/library/plugin-update-checker/vendor (added)
-
tags/1.4.4/lib/library/plugin-update-checker/vendor/Parsedown.php (added)
-
tags/1.4.4/lib/library/plugin-update-checker/vendor/ParsedownLegacy.php (added)
-
tags/1.4.4/lib/library/plugin-update-checker/vendor/readme-parser.php (added)
-
tags/1.4.4/lib/load.php (added)
-
tags/1.4.4/lib/public (added)
-
tags/1.4.4/lib/public/css (added)
-
tags/1.4.4/lib/public/css/index.php (added)
-
tags/1.4.4/lib/public/fonts (added)
-
tags/1.4.4/lib/public/fonts/index.php (added)
-
tags/1.4.4/lib/public/img (added)
-
tags/1.4.4/lib/public/img/back.png (added)
-
tags/1.4.4/lib/public/img/index.php (added)
-
tags/1.4.4/lib/public/img/loading.gif (added)
-
tags/1.4.4/lib/public/index.php (added)
-
tags/1.4.4/lib/public/js (added)
-
tags/1.4.4/lib/public/js/index.php (added)
-
tags/1.4.4/lib/public/plugins (added)
-
tags/1.4.4/lib/public/plugins/index.php (added)
-
tags/1.4.4/lib/services (added)
-
tags/1.4.4/lib/services/device-service.php (added)
-
tags/1.4.4/lib/services/minify-service.php (added)
-
tags/1.4.4/lib/services/option-service.php (added)
-
tags/1.4.4/lib/services/post-service.php (added)
-
tags/1.4.4/lib/services/system-service.php (added)
-
tags/1.4.4/lib/services/user-service.php (added)
-
tags/1.4.4/lib/views (added)
-
tags/1.4.4/lib/views/ajaxurl-admin.php (added)
-
tags/1.4.4/lib/views/ajaxurl.php (added)
-
tags/1.4.4/lib/views/modal-script.php (added)
-
tags/1.4.4/lib/views/modal-style.php (added)
-
tags/1.4.4/logs (added)
-
tags/1.4.4/models (added)
-
tags/1.4.4/models/access.php (added)
-
tags/1.4.4/models/index.php (added)
-
tags/1.4.4/models/number.php (added)
-
tags/1.4.4/public (added)
-
tags/1.4.4/public/css (added)
-
tags/1.4.4/public/css/index.php (added)
-
tags/1.4.4/public/fonts (added)
-
tags/1.4.4/public/fonts/index.php (added)
-
tags/1.4.4/public/img (added)
-
tags/1.4.4/public/img/index.php (added)
-
tags/1.4.4/public/img/logo.png (added)
-
tags/1.4.4/public/index.php (added)
-
tags/1.4.4/public/js (added)
-
tags/1.4.4/public/js/index.php (added)
-
tags/1.4.4/public/plugins (added)
-
tags/1.4.4/public/plugins/index.php (added)
-
tags/1.4.4/readme.txt (added)
-
tags/1.4.4/screenshot-1.png (added)
-
tags/1.4.4/screenshot-2.png (added)
-
tags/1.4.4/services (added)
-
tags/1.4.4/services/ajax.php (added)
-
tags/1.4.4/services/calculate.php (added)
-
tags/1.4.4/services/clear.php (added)
-
tags/1.4.4/services/index.php (added)
-
tags/1.4.4/services/number.php (added)
-
tags/1.4.4/services/show-related-post.php (added)
-
tags/1.4.4/services/test.php (added)
-
tags/1.4.4/services/update.php (added)
-
tags/1.4.4/settings.php (added)
-
tags/1.4.4/uninstall.php (added)
-
tags/1.4.4/unsupported.php (added)
-
tags/1.4.4/update.json (added)
-
tags/1.4.4/views (added)
-
tags/1.4.4/views/action.php (added)
-
tags/1.4.4/views/index.php (added)
-
tags/1.4.4/views/log.php (added)
-
tags/1.4.4/views/setting.php (added)
-
tags/1.4.4/views/show-related-post-script.php (added)
-
tags/1.4.4/views/show-related-post.php (added)
-
tags/1.4.4/views/test-script.php (added)
-
tags/1.4.4/views/test.php (added)
-
trunk/collaborative-filtering.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/services/calculate.php (modified) (3 diffs)
-
trunk/services/clear.php (modified) (3 diffs)
-
trunk/update.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cfiltering/trunk/collaborative-filtering.php
r1517312 r1517362 5 5 Description: Recommendation plugin using collaborative filtering 6 6 Author: 123teru321 7 Version: 1.4. 37 Version: 1.4.4 8 8 Author URI: http://technote.space/ 9 9 Text Domain: CollaborativeFiltering … … 27 27 28 28 //plugin version 29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.4. 3' );29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.4.4' ); 30 30 31 31 //required php version -
cfiltering/trunk/readme.txt
r1517312 r1517362 4 4 Requires at least: 3.9.13 5 5 Tested up to: 4.6.1 6 Stable tag: 1.4. 36 Stable tag: 1.4.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 32 32 33 33 == Changelog == 34 35 = 1.4.4 = 36 * 2016-10-18 Modified cron behavior 34 37 35 38 = 1.4.3 = -
cfiltering/trunk/services/calculate.php
r1517312 r1517362 12 12 protected function __construct() 13 13 { 14 if ( !wp_next_scheduled( 'cf_calculate_event' ) && !wp_next_scheduled( 'cf_calculate_hook' )) {14 if ( !wp_next_scheduled( 'cf_calculate_event' ) ) { 15 15 wp_schedule_single_event( time() + $this->apply_filters( 'calc_interval', COLLABORATIVE_FILTERING_CALC_INTERVAL ), 'cf_calculate_event' ); 16 16 } 17 17 add_action( 'cf_calculate_event', function () { 18 18 $this->check_progress(); 19 } );20 add_action( 'cf_calculate_hook', function () {21 $this->execute();22 19 } ); 23 20 … … 52 49 { 53 50 $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(); 63 53 } 64 54 65 55 private function check_progress() 66 56 { 67 if ( wp_next_scheduled( 'cf_calculate_hook' ) ) {68 return;69 }70 71 57 $time = $this->get_time(); 72 58 $now = time(); … … 84 70 $this->set_time( time() ); 85 71 86 wp_schedule_single_event( time(), 'cf_calculate_hook');72 $this->execute(); 87 73 } 88 74 -
cfiltering/trunk/services/clear.php
r1517312 r1517362 17 17 add_action( 'cf_clear_event', function () { 18 18 $this->check_progress(); 19 } );20 add_action( 'cf_clear_hook', function () {21 $this->execute();22 19 } ); 23 20 … … 48 45 private function check_progress() 49 46 { 50 if ( wp_next_scheduled( 'cf_clear_hook' ) ) {51 return;52 }53 54 47 $time = $this->get_time(); 55 48 $now = time(); … … 59 52 $this->set_time( time() ); 60 53 61 wp_schedule_single_event( time(), 'cf_clear_hook');54 $this->execute(); 62 55 } 63 56 -
cfiltering/trunk/update.json
r1517312 r1517362 3 3 "slug": "cfiltering", 4 4 "download_url": "https://github.com/123teru321/CFiltering/archive/master.zip", 5 "version": "1.4. 3",5 "version": "1.4.4", 6 6 "tested": "4.6.1", 7 7 "homepage": "https://technote.space/",
Note: See TracChangeset
for help on using the changeset viewer.