mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-25 01:35:14 +00:00
Switched IF Statement order to prevent excess calls to redis.
This commit is contained in:
parent
19f21219f8
commit
493c12846a
@ -1,3 +1,6 @@
|
|||||||
|
## 1.4.6 (2020-01-10)
|
||||||
|
- Switched IF Statement order to prevent excess calls to redis.
|
||||||
|
|
||||||
## 1.4.5 (2019-08-28)
|
## 1.4.5 (2019-08-28)
|
||||||
- Added 'replaced' composer tag.
|
- Added 'replaced' composer tag.
|
||||||
- Formatting changes.
|
- Formatting changes.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "idanoo/php-resque",
|
"name": "idanoo/php-resque",
|
||||||
"version": "1.4.5",
|
"version": "1.4.6",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"replace": {
|
"replace": {
|
||||||
"chrisboulton/php-resque": "*",
|
"chrisboulton/php-resque": "*",
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
class Resque
|
class Resque
|
||||||
{
|
{
|
||||||
const VERSION = '1.4.5';
|
const VERSION = '1.4.6';
|
||||||
|
|
||||||
const DEFAULT_INTERVAL = 5;
|
const DEFAULT_INTERVAL = 5;
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ class Resque_Worker
|
|||||||
*/
|
*/
|
||||||
public static function find($workerId)
|
public static function find($workerId)
|
||||||
{
|
{
|
||||||
if (!self::exists($workerId) || false === strpos($workerId, ":")) {
|
if (false === strpos($workerId, ":") || !self::exists($workerId)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/** @noinspection PhpUnusedLocalVariableInspection */
|
/** @noinspection PhpUnusedLocalVariableInspection */
|
||||||
|
Loading…
Reference in New Issue
Block a user