Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Andrey Ovchinnikov
WB-autobidder
Commits
27f255db
Commit
27f255db
authored
3 months ago
by
ovchinnikov_av
Browse files
Options
Download
Patches
Plain Diff
Сократил количесвто кешируемых кампаний за раз;
parent
be922cf0
optimization_v1
autopayments-hotfix
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Application/app/Console/Commands/UpdateCampaignCache.php
+1
-0
Application/app/Console/Commands/UpdateCampaignCache.php
Application/app/Console/Commands/UpdateCampaignCacheAsync.php
+1
-0
...ication/app/Console/Commands/UpdateCampaignCacheAsync.php
with
2 additions
and
0 deletions
Application/app/Console/Commands/UpdateCampaignCache.php
+
1
−
0
View file @
27f255db
...
...
@@ -45,6 +45,7 @@ class UpdateCampaignCache extends Command
// Выбираем активных биддеров, отсортированных по времени последнего кеширования (сначала те, у которых кеш отсутствует)
$bidders
=
Bidder
::
where
(
'state'
,
Bidder
::
STATE_ACTIVE
)
->
orderBy
(
'last_cache_time'
,
'asc'
)
->
take
(
10
)
->
get
();
foreach
(
$bidders
as
$bidder
)
{
...
...
This diff is collapsed.
Click to expand it.
Application/app/Console/Commands/UpdateCampaignCacheAsync.php
+
1
−
0
View file @
27f255db
...
...
@@ -45,6 +45,7 @@ class UpdateCampaignCacheAsync extends Command
$bidders
=
Bidder
::
where
(
'state'
,
Bidder
::
STATE_ACTIVE
)
->
orderBy
(
'last_cache_time'
,
'asc'
)
->
take
(
10
)
->
get
();
DB
::
table
(
'jobs'
)
->
where
(
'queue'
,
'cache'
)
->
delete
();
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets