cache save
This commit is contained in:
@@ -135,10 +135,15 @@ abstract class BaseController extends Controller
|
||||
public function deleteCache($cacheKey){
|
||||
$data = [];
|
||||
$cacheKey = $this->cache_tag."-".$cacheKey;
|
||||
if (cache($cacheKey)) {
|
||||
// echo 'Getting Data From Cache!<br>';
|
||||
$data = unserialize(cache()->delete($cacheKey));
|
||||
try {
|
||||
if (cache($cacheKey)) {
|
||||
// echo 'Getting Data From Cache!<br>';
|
||||
$data = unserialize(cache()->delete($cacheKey));
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
private function data_stringify($data) {
|
||||
|
||||
Reference in New Issue
Block a user