mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #8519 from appwrite/fix-8518-migration-stuck
Fix migration stuck at "Starting Data Migration [...]"
This commit is contained in:
commit
672dfd9a26
1 changed files with 1 additions and 1 deletions
|
|
@ -43,8 +43,8 @@ class Migrate extends Action
|
||||||
private function clearProjectsCache(Document $project)
|
private function clearProjectsCache(Document $project)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$iterator = null;
|
||||||
do {
|
do {
|
||||||
$iterator = null;
|
|
||||||
$pattern = "default-cache-_{$project->getInternalId()}:*";
|
$pattern = "default-cache-_{$project->getInternalId()}:*";
|
||||||
$keys = $this->redis->scan($iterator, $pattern, 1000);
|
$keys = $this->redis->scan($iterator, $pattern, 1000);
|
||||||
if ($keys !== false) {
|
if ($keys !== false) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue