The cache was not cleared when saving

Clearing the cache using tags did not work correctly. Had to abandon them.
This commit is contained in:
2025-08-22 16:14:22 +05:00
parent 4049f9df53
commit 224240708d
12 changed files with 25 additions and 49 deletions
@@ -5,7 +5,6 @@ namespace App\Services\Admin\Project;
use App\Dto\Service\Admin\Project\Translation\Translations;
use App\Dto\Service\Admin\Project\Translation\Translation;
use App\Dto\Service\Admin\Project\Translation\Update;
use App\Enums\CacheTag;
use App\Jobs\Translate\ProcessTranslationText;
use App\Models\ProjectTranslation;
use App\Models\User;
@@ -83,7 +82,7 @@ final class TranslationService extends Service
DB::transaction(function () use ($data, $project, $language) {
$this->translationModelSyncCommand->execute($project, $language, $data->getTranslations());
});
$this->clearCacheCommandHandler->byTag(CacheTag::ProjectTranslation);
$this->clearCacheCommandHandler->all();
if (\config('translation_service.enable', false)) {
$this->translateContent($projectId, $languageId, $data);
}