ver. 0.282: Banners frontend migration, Cache cleanup, Shared\Cache namespace
- Banners frontend: front\Views\Banners (new), BannerRepository +2 frontend methods, front\view\Site przepięty, usunięte front\factory\Banners i front\view\Banners - Cache cleanup: eliminacja legacy class.Cache.php (file-based cache), 13 metod front\factory przepiętych z \Cache::fetch/store na CacheHandler - Shared\Cache namespace: CacheHandler i RedisConnection przeniesione do Shared\Cache\, 60 odwołań CacheHandler i 12 odwołań RedisConnection przepiętych, usunięte backward-compat wrappery class.CacheHandler.php i class.RedisConnection.php - Naprawione rozbieżności kluczy cache (random_products, category_name) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,7 @@ if (!class_exists('S')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!class_exists('RedisConnection')) {
|
||||
if (!class_exists('Shared\\Cache\\RedisConnection')) {
|
||||
class RedisConnection {
|
||||
private static $instance;
|
||||
public static function getInstance() {
|
||||
@@ -68,6 +68,7 @@ if (!class_exists('RedisConnection')) {
|
||||
}
|
||||
public function getConnection() { return null; }
|
||||
}
|
||||
class_alias('RedisConnection', 'Shared\\Cache\\RedisConnection');
|
||||
}
|
||||
|
||||
if (!class_exists('Redis')) {
|
||||
@@ -80,7 +81,7 @@ if (!class_exists('Redis')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!class_exists('CacheHandler')) {
|
||||
if (!class_exists('Shared\\Cache\\CacheHandler')) {
|
||||
class CacheHandler {
|
||||
public function get($key) { return null; }
|
||||
public function set($key, $value, $ttl = 86400) {}
|
||||
@@ -88,4 +89,5 @@ if (!class_exists('CacheHandler')) {
|
||||
public function delete($key) {}
|
||||
public function deletePattern($pattern) {}
|
||||
}
|
||||
class_alias('CacheHandler', 'Shared\\Cache\\CacheHandler');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user