<?php

namespace App\Observers;

use App\Helpers\HomepageCacheHelper;
use App\Models\Product;

class ProductObserver
{
    public function saved(Product $product): void
    {
        HomepageCacheHelper::clear();
    }

    public function deleted(Product $product): void
    {
        HomepageCacheHelper::clear();
    }
}
