Updated home page cache forget for Home model one
Updated home page cache forget for Home model one
This commit is contained in:
parent
8e968a60c9
commit
f70d01552b
|
@ -3,6 +3,7 @@
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App\Models\Domains;
|
use App\Models\Domains;
|
||||||
|
use App\Models\Home;
|
||||||
use App\Models\Labels;
|
use App\Models\Labels;
|
||||||
use App\Models\Pricing;
|
use App\Models\Pricing;
|
||||||
use App\Models\Providers;
|
use App\Models\Providers;
|
||||||
|
@ -65,9 +66,7 @@ class DomainsController extends Controller
|
||||||
|
|
||||||
Labels::insertLabelsAssigned([$request->label1, $request->label2, $request->label3, $request->label4], $domain_id);
|
Labels::insertLabelsAssigned([$request->label1, $request->label2, $request->label3, $request->label4], $domain_id);
|
||||||
|
|
||||||
Cache::forget('services_count');//Main page services_count cache
|
Home::homePageCacheForget();
|
||||||
Cache::forget('due_soon');//Main page due_soon cache
|
|
||||||
Cache::forget('recently_added');//Main page recently_added cache
|
|
||||||
|
|
||||||
return redirect()->route('domains.index')
|
return redirect()->route('domains.index')
|
||||||
->with('success', 'Domain Created Successfully.');
|
->with('success', 'Domain Created Successfully.');
|
||||||
|
@ -113,9 +112,7 @@ class DomainsController extends Controller
|
||||||
Labels::insertLabelsAssigned([$request->label1, $request->label2, $request->label3, $request->label4], $domain->id);
|
Labels::insertLabelsAssigned([$request->label1, $request->label2, $request->label3, $request->label4], $domain->id);
|
||||||
|
|
||||||
Cache::forget("labels_for_service.{$domain->id}");
|
Cache::forget("labels_for_service.{$domain->id}");
|
||||||
Cache::forget('services_count');//Main page services_count cache
|
Home::homePageCacheForget();
|
||||||
Cache::forget('due_soon');//Main page due_soon cache
|
|
||||||
Cache::forget('recently_added');//Main page recently_added cache
|
|
||||||
|
|
||||||
return redirect()->route('domains.index')
|
return redirect()->route('domains.index')
|
||||||
->with('success', 'Domain Updated Successfully.');
|
->with('success', 'Domain Updated Successfully.');
|
||||||
|
@ -132,9 +129,7 @@ class DomainsController extends Controller
|
||||||
|
|
||||||
Labels::deleteLabelsAssignedTo($domain->id);
|
Labels::deleteLabelsAssignedTo($domain->id);
|
||||||
|
|
||||||
Cache::forget('services_count');//Main page services_count cache
|
Home::homePageCacheForget();
|
||||||
Cache::forget('due_soon');//Main page due_soon cache
|
|
||||||
Cache::forget('recently_added');//Main page recently_added cache
|
|
||||||
|
|
||||||
return redirect()->route('domains.index')
|
return redirect()->route('domains.index')
|
||||||
->with('success', 'Domain was deleted Successfully.');
|
->with('success', 'Domain was deleted Successfully.');
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Home;
|
||||||
use App\Models\Misc;
|
use App\Models\Misc;
|
||||||
use App\Models\Pricing;
|
use App\Models\Pricing;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
@ -58,9 +59,7 @@ class MiscController extends Controller
|
||||||
'owned_since' => $request->owned_since
|
'owned_since' => $request->owned_since
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Cache::forget('services_count');//Main page services_count cache
|
Home::homePageCacheForget();
|
||||||
Cache::forget('due_soon');//Main page due_soon cache
|
|
||||||
Cache::forget('recently_added');//Main page recently_added cache
|
|
||||||
|
|
||||||
return redirect()->route('misc.index')
|
return redirect()->route('misc.index')
|
||||||
->with('success', 'Misc service created Successfully.');
|
->with('success', 'Misc service created Successfully.');
|
||||||
|
@ -97,9 +96,7 @@ class MiscController extends Controller
|
||||||
|
|
||||||
$pricing->updatePricing($misc->id, $request->currency, $request->price, $request->payment_term, $as_usd, $request->next_due_date);
|
$pricing->updatePricing($misc->id, $request->currency, $request->price, $request->payment_term, $as_usd, $request->next_due_date);
|
||||||
|
|
||||||
Cache::forget('services_count');//Main page services_count cache
|
Home::homePageCacheForget();
|
||||||
Cache::forget('due_soon');//Main page due_soon cache
|
|
||||||
Cache::forget('recently_added');//Main page recently_added cache
|
|
||||||
|
|
||||||
return redirect()->route('misc.index')
|
return redirect()->route('misc.index')
|
||||||
->with('success', 'Misc service updated Successfully.');
|
->with('success', 'Misc service updated Successfully.');
|
||||||
|
@ -114,9 +111,7 @@ class MiscController extends Controller
|
||||||
$p = new Pricing();
|
$p = new Pricing();
|
||||||
$p->deletePricing($misc->id);
|
$p->deletePricing($misc->id);
|
||||||
|
|
||||||
Cache::forget('services_count');//Main page services_count cache
|
Home::homePageCacheForget();
|
||||||
Cache::forget('due_soon');//Main page due_soon cache
|
|
||||||
Cache::forget('recently_added');//Main page recently_added cache
|
|
||||||
|
|
||||||
return redirect()->route('misc.index')
|
return redirect()->route('misc.index')
|
||||||
->with('success', 'Misc service was deleted Successfully.');
|
->with('success', 'Misc service was deleted Successfully.');
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Home;
|
||||||
use App\Models\IPs;
|
use App\Models\IPs;
|
||||||
use App\Models\Labels;
|
use App\Models\Labels;
|
||||||
use App\Models\Locations;
|
use App\Models\Locations;
|
||||||
|
@ -90,7 +91,7 @@ class ResellerController extends Controller
|
||||||
'db_limit' => $request->db
|
'db_limit' => $request->db
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Reseller::resllerRelatedCacheForget();
|
Home::homePageCacheForget();
|
||||||
|
|
||||||
return redirect()->route('reseller.index')
|
return redirect()->route('reseller.index')
|
||||||
->with('success', 'Reseller hosting created Successfully.');
|
->with('success', 'Reseller hosting created Successfully.');
|
||||||
|
@ -180,7 +181,7 @@ class ResellerController extends Controller
|
||||||
|
|
||||||
Cache::forget("labels_for_service.{$request->id}");
|
Cache::forget("labels_for_service.{$request->id}");
|
||||||
|
|
||||||
Reseller::resllerRelatedCacheForget();
|
Home::homePageCacheForget();
|
||||||
|
|
||||||
return redirect()->route('reseller.index')
|
return redirect()->route('reseller.index')
|
||||||
->with('success', 'Reseller hosting updated Successfully.');
|
->with('success', 'Reseller hosting updated Successfully.');
|
||||||
|
@ -200,7 +201,7 @@ class ResellerController extends Controller
|
||||||
|
|
||||||
IPs::deleteIPsAssignedTo($id);
|
IPs::deleteIPsAssignedTo($id);
|
||||||
|
|
||||||
Reseller::resllerRelatedCacheForget();
|
Home::homePageCacheForget();
|
||||||
|
|
||||||
return redirect()->route('reseller.index')
|
return redirect()->route('reseller.index')
|
||||||
->with('success', 'Reseller hosting was deleted Successfully.');
|
->with('success', 'Reseller hosting was deleted Successfully.');
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Home;
|
||||||
use App\Models\IPs;
|
use App\Models\IPs;
|
||||||
use App\Models\Labels;
|
use App\Models\Labels;
|
||||||
use App\Models\Pricing;
|
use App\Models\Pricing;
|
||||||
|
@ -72,7 +73,7 @@ class SeedBoxesController extends Controller
|
||||||
'was_promo' => $request->was_promo
|
'was_promo' => $request->was_promo
|
||||||
]);
|
]);
|
||||||
|
|
||||||
SeedBoxes::seedBoxRelatedCacheForget();
|
Home::homePageCacheForget();
|
||||||
|
|
||||||
return redirect()->route('seedboxes.index')
|
return redirect()->route('seedboxes.index')
|
||||||
->with('success', 'Seed box created Successfully.');
|
->with('success', 'Seed box created Successfully.');
|
||||||
|
@ -144,7 +145,7 @@ class SeedBoxesController extends Controller
|
||||||
|
|
||||||
Cache::forget("labels_for_service.{$seedbox->id}");
|
Cache::forget("labels_for_service.{$seedbox->id}");
|
||||||
|
|
||||||
SeedBoxes::seedBoxRelatedCacheForget();
|
Home::homePageCacheForget();
|
||||||
|
|
||||||
return redirect()->route('seedboxes.index')
|
return redirect()->route('seedboxes.index')
|
||||||
->with('success', 'Seed box updated Successfully.');
|
->with('success', 'Seed box updated Successfully.');
|
||||||
|
@ -161,7 +162,7 @@ class SeedBoxesController extends Controller
|
||||||
|
|
||||||
Labels::deleteLabelsAssignedTo($seedbox_id);
|
Labels::deleteLabelsAssignedTo($seedbox_id);
|
||||||
|
|
||||||
SeedBoxes::seedBoxRelatedCacheForget();
|
Home::homePageCacheForget();
|
||||||
|
|
||||||
return redirect()->route('seedboxes.index')
|
return redirect()->route('seedboxes.index')
|
||||||
->with('success', 'Seed box was deleted Successfully.');
|
->with('success', 'Seed box was deleted Successfully.');
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Home;
|
||||||
use App\Models\IPs;
|
use App\Models\IPs;
|
||||||
use App\Models\Labels;
|
use App\Models\Labels;
|
||||||
use App\Models\Pricing;
|
use App\Models\Pricing;
|
||||||
|
@ -87,7 +88,7 @@ class SharedController extends Controller
|
||||||
'db__limit' => $request->db
|
'db__limit' => $request->db
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Shared::sharedRelatedCacheForget();
|
Home::homePageCacheForget();
|
||||||
|
|
||||||
return redirect()->route('shared.index')
|
return redirect()->route('shared.index')
|
||||||
->with('success', 'Shared hosting created Successfully.');
|
->with('success', 'Shared hosting created Successfully.');
|
||||||
|
@ -177,7 +178,7 @@ class SharedController extends Controller
|
||||||
IPs::insertIP($request->id, $request->dedicated_ip);
|
IPs::insertIP($request->id, $request->dedicated_ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
Shared::sharedRelatedCacheForget();
|
Home::homePageCacheForget();
|
||||||
|
|
||||||
return redirect()->route('shared.index')
|
return redirect()->route('shared.index')
|
||||||
->with('success', 'Shared hosting updated Successfully.');
|
->with('success', 'Shared hosting updated Successfully.');
|
||||||
|
@ -197,7 +198,7 @@ class SharedController extends Controller
|
||||||
|
|
||||||
IPs::deleteIPsAssignedTo($shared_id);
|
IPs::deleteIPsAssignedTo($shared_id);
|
||||||
|
|
||||||
Shared::sharedRelatedCacheForget();
|
Home::homePageCacheForget();
|
||||||
|
|
||||||
return redirect()->route('shared.index')
|
return redirect()->route('shared.index')
|
||||||
->with('success', 'Shared hosting was deleted Successfully.');
|
->with('success', 'Shared hosting was deleted Successfully.');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user