diff --git a/www-api/app/Controllers/BaseController.php b/www-api/app/Controllers/BaseController.php
index d988622b..13ab481e 100644
--- a/www-api/app/Controllers/BaseController.php
+++ b/www-api/app/Controllers/BaseController.php
@@ -49,11 +49,11 @@ abstract class BaseController extends Controller
// Preload any models, libraries, etc, here.
// E.g.: $this->session = \Config\Services::session();
- $cache_tag = $this->getSiteConfigurations("system.cache_tag");
+ $this->cache_tag = $this->getSiteConfigurations("system.cache_tag");
}
public function saveCache($cacheKey,$data,$timeLine=5000){
- $cacheKey = $this.cache_tag."-".$cacheKey;
+ $cacheKey = $this->cache_tag."-".$cacheKey;
// $cache = \Config\Services::cache();
if (! $foo = cache($cacheKey)) {
// echo 'Saving to the cache!
';
@@ -69,7 +69,7 @@ abstract class BaseController extends Controller
public function getCache($cacheKey){
$data = [];
- $cacheKey = $this.cache_tag."-".$cacheKey;
+ $cacheKey = $this->cache_tag."-".$cacheKey;
if (cache($cacheKey)) {
// echo 'Getting Data From Cache!
';
$data = unserialize(cache()->get($cacheKey));