1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- class Cache
- {
- private function createCacheKey($key, $isUserValue, $userId = null) {
-
- $CC_CONFIG = Config::getConfig();
- $a = $CC_CONFIG["apiKey"][0];
-
- if ($isUserValue) {
- $cacheKey = "{$key}{$userId}{$a}";
- }
- else {
- $cacheKey = "{$key}{$a}";
- }
- return $cacheKey;
- }
-
- public function store($key, $value, $isUserValue, $userId = null) {
-
- //$cacheKey = self::createCacheKey($key, $userId);
- return false; ///apc_store($cacheKey, $value);
- }
-
- public function fetch($key, $isUserValue, $userId = null) {
-
- //$cacheKey = self::createCacheKey($key, $isUserValue, $userId);
- return false; //apc_fetch($cacheKey);
- }
-
- public static function clear() {
- // Disabled on SaaS
- // apc_clear_cache('user');
- // apc_clear_cache();
- }
- }
|