Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
fcb4afc1
Commit
fcb4afc1
authored
Dec 21, 2020
by
Dominik Hebeler
Browse files
expiring more redis keys
parent
df1ff43a
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
fcb4afc1
...
...
@@ -858,6 +858,7 @@ class MetaGer
continue
;
}
else
{
Redis
::
lpush
(
$answer
[
0
],
$answer
[
1
]);
Redis
::
expire
(
$answer
[
0
],
60
);
}
foreach
(
$engines
as
$index
=>
$engine
)
{
if
(
$engine
->
hash
===
$answer
[
0
])
{
...
...
app/Models/Quicktips/Quicktips.php
View file @
fcb4afc1
...
...
@@ -85,6 +85,7 @@ class Quicktips
do
{
$body
=
Redis
::
rpoplpush
(
$this
->
hash
,
$this
->
hash
);
Redis
::
expire
(
$this
->
hash
,
60
);
if
(
$body
===
false
||
$body
===
null
)
{
usleep
(
50
*
1000
);
}
else
{
...
...
app/Models/Searchengine.php
View file @
fcb4afc1
...
...
@@ -200,6 +200,7 @@ abstract class Searchengine
}
if
(
!
$this
->
cached
&&
empty
(
$body
))
{
$body
=
Redis
::
rpoplpush
(
$this
->
hash
,
$this
->
hash
);
Redis
::
expire
(
$this
->
hash
,
60
);
if
(
$body
===
false
)
{
return
$body
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment