Cache query

  Thu 06 / 07 / 2023

  Posted by: Ahad Ali

Category : Laravel

Tags : laravel , php laravel

Description

Bhai ma cahe ka problem face kr raha hoon bhat zaida.

actually mana site ko live kia tha sahi chal rahi hn lakin jab kuch chnages kro to koi effect nahi parhata laravel ki tamam Artisan commands b run ki koi farq nahi parha.

use Illuminate\Support\Facades\Artisan;


// Clear Caches

Route::get('/clear-cache', function () {

    Artisan::call('config:cache');

    Artisan::call('view:clear');

    Artisan::call('cache:clear');

  Artisan::call('optimize');

  Artisan::call('config:clear');    

    return "Caches cleared.";

});


Brswer ka b bhat bar cache remove kia hn khas tor pr jab koi css ki files ma changes kro to ya issue ata hn 

iska koi solution >>



  Answered by CDL

G agr ap chrome use kr rhy hain to chrome ki latest updates ke andar chrome bahot zeada cache krta hai, ap chrome ka incognato mode on kr ke implement kiya krein ya different browser se testing kiya krein then apki changes relfect hun gi.

  Comment   Share
0 Likes   0 Comments