Changeset 2576818
- Timestamp:
- 08/02/2021 10:06:48 PM (5 years ago)
- Location:
- fastcomments
- Files:
-
- 34 added
- 3 edited
-
tags/3.9.1 (added)
-
tags/3.9.1/.gitignore (added)
-
tags/3.9.1/LICENSE (added)
-
tags/3.9.1/README.md (added)
-
tags/3.9.1/README.txt (added)
-
tags/3.9.1/admin (added)
-
tags/3.9.1/admin/fastcomments-admin-setup-view.js (added)
-
tags/3.9.1/admin/fastcomments-admin-setup-view.php (added)
-
tags/3.9.1/admin/fastcomments-admin-sso-view.css (added)
-
tags/3.9.1/admin/fastcomments-admin-sso-view.js (added)
-
tags/3.9.1/admin/fastcomments-admin-sso-view.php (added)
-
tags/3.9.1/admin/fastcomments-admin-support-view.php (added)
-
tags/3.9.1/admin/fastcomments-admin-view.php (added)
-
tags/3.9.1/admin/fastcomments-admin.css (added)
-
tags/3.9.1/admin/fastcomments-admin.php (added)
-
tags/3.9.1/admin/images (added)
-
tags/3.9.1/admin/images/api.png (added)
-
tags/3.9.1/admin/images/crown.png (added)
-
tags/3.9.1/admin/images/css.png (added)
-
tags/3.9.1/admin/images/debugging.png (added)
-
tags/3.9.1/admin/images/download.png (added)
-
tags/3.9.1/admin/images/home.png (added)
-
tags/3.9.1/admin/images/logo-50.png (added)
-
tags/3.9.1/admin/images/logo.png (added)
-
tags/3.9.1/admin/images/support.png (added)
-
tags/3.9.1/admin/images/sync.png (added)
-
tags/3.9.1/core (added)
-
tags/3.9.1/core/FastCommentsIntegrationCore.php (added)
-
tags/3.9.1/core/FastCommentsWordPressIntegration.php (added)
-
tags/3.9.1/fastcomments-wordpress-plugin.php (added)
-
tags/3.9.1/public (added)
-
tags/3.9.1/public/fastcomments-public.php (added)
-
tags/3.9.1/public/fastcomments-widget-view.php (added)
-
tags/3.9.1/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/core/FastCommentsIntegrationCore.php (modified) (2 diffs)
-
trunk/fastcomments-wordpress-plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fastcomments/trunk/README.txt
r2576755 r2576818 4 4 Requires at least: 4.6 5 5 Tested up to: 5.8 6 Stable tag: 3.9 6 Stable tag: 3.9.1 7 7 Requires PHP: 5.2.4 8 8 License: GPLv2 or later … … 85 85 == Changelog == 86 86 87 = 3.9.1 = 88 * Initial sync has been sped up and some bugs fixed. 89 87 90 = 3.9 = 88 91 * Sync of comments from WordPress to FastComments when there are many comments improved. -
fastcomments/trunk/core/FastCommentsIntegrationCore.php
r2576755 r2576818 216 216 } 217 217 218 private function canAckLock($name, $window) { 219 $settingName = $this->getLockName($name); 220 $lastTime = $this->getSettingValue($settingName); 221 $now = time(); 222 if ($lastTime && $now - $lastTime < $window) { 223 return false; 224 } 225 $this->setSettingValue($settingName, $now); 226 return true; 227 } 228 229 private function getLockName($name) { 230 return "lock_$name"; 231 } 232 233 private function clearLock($name) { 234 $settingName = $this->getLockName($name); 235 $this->setSettingValue($settingName, null); 236 } 237 218 238 public function commandSendComments($token) { 219 239 $this->log('debug', 'Starting to send comments'); 240 if (!$this->canAckLock("commandSendComments", 3000)) { 241 $this->log('debug', 'Can not send right now, waiting for previous attempt to finish.'); 242 return; 243 } 220 244 $lastSendDate = $this->getSettingValue('fastcomments_stream_last_send_timestamp'); 221 245 $startedAt = time(); … … 283 307 $this->setSettingValue('fastcomments_setup', true); 284 308 $this->setSettingValue('fastcomments_stream_last_fetch_timestamp', time() * 1000); 309 $this->clearLock("commandSendComments"); 285 310 } 286 311 -
fastcomments/trunk/fastcomments-wordpress-plugin.php
r2576755 r2576818 4 4 Plugin URI: https://fastcomments.com 5 5 Description: Live Comments, Fast. A comment system that will delight your users and developers. 6 Version: 3.9 6 Version: 3.9.1 7 7 Author: winrid @ FastComments 8 8 License: GPL-2.0+ … … 14 14 } 15 15 16 $FASTCOMMENTS_VERSION = 3.9 ;16 $FASTCOMMENTS_VERSION = 3.91; 17 17 18 18
Note: See TracChangeset
for help on using the changeset viewer.