Commit Graph

12 Commits

Author SHA1 Message Date
Dekart Deploy Bot
d6286c0b5c fix: disable all cache logic in MU-plugin (cross-site data leakage)
- Removed: cache backend detection, versioned keys, auto-invalidation,
  admin notices, WP_CLI commands, salt_keys re-salt
- Kept only WP_REDIS_HOST/WP_REDIS_PORT constants (harmless)
- Cache fully disabled until root cause found
2026-07-17 19:40:06 +00:00
Dekart Deploy Bot
d247b513d1 fix: re-salt Memcached keys after drop-in load to isolate multi-site cache
- WP_CACHE_KEY_SALT defined in MU-plugin is too late:
  object-cache.php (Memcached drop-in) loads before MU-plugins
- Add muplugins_loaded hook: call salt_keys(DB_NAME) directly
  on the initialized Memcached object cache instance
- Each site gets unique key prefix from its database name
- Prevents cross-site cache collision when multiple WP sites
  share one Memcached server
2026-07-17 19:23:56 +00:00
Dekart Deploy Bot
0c551ee717 fix: WP_CACHE_KEY_SALT для разделения кеша между сайтами
- Использует DB_NAME как соль для ключей кеша
- Предотвращает коллизию когда schelkovo и pushkino
  используют один Memcached/Redis на сервере
- Без соли siteurl/home из кеша одного сайта читаются другим
2026-07-17 18:12:48 +00:00
Dekart Deploy Bot
0bb005339c fix: remove auto-copy memcached drop-in (prevents broken HTML on prod)
- dekart_try_install_memcached_dropin() removed — no more auto-copy
  on plugins_loaded (causes PHP errors if memcached server not running)
- Admin notice shows: 'Install manually' when server is reachable,
  'Start Memcached server' when extension installed but no connect,
  'Install PHP extension' when missing
- Plugin action link shows 'install manually' instead of 'Activate'
- WP-CLI: wp dekart cache-memcached still works for manual install
2026-07-17 18:07:44 +00:00
Dekart Deploy Bot
9fb676319a chore: ensure mu-plugins dir tracked via .gitkeep
- .gitkeep гарантирует что директория wp-content/mu-plugins/
  создаётся при git pull на проде
2026-07-17 16:57:58 +00:00
Dekart Deploy Bot
2deb14c736 fix: auto-install memcached drop-in + block plugin activation
- dekart_try_install_memcached_dropin(): auto-copy object-cache.php
  from memcached plugin to wp-content/ on plugins_loaded
- Remove 'Activate' link for memcached plugin (prevents fatal error)
- Admin notice with instructions when PHP extension is missing
- WP-CLI command: wp dekart cache-memcached
2026-07-17 16:49:56 +00:00
Dekart Deploy Bot
bcf68d671f fix: update MU-plugin for Memcached Object Cache support
- Auto-detect: Memcached (class Memcache/Memcached + port 11211),
  Redis (Predis + port 6379), or none
- WP-CLI commands: wp dekart cache-flush, wp dekart cache-memcached
- cache-memcached checks PHP extension before copying drop-in
- Removed Redis-specific constants (handled by redis-cache plugin)
- Handle activation conflict: Memcached drop-in copied manually,
  not via plugin activation (prevents wp_cache_add fatal error)
2026-07-17 16:38:59 +00:00
Dekart Deploy Bot
76303d3a3b feat: add MU-plugin for cache backend auto-detection + versioned cache invalidation
- Auto-detects Memcached/Redis via fsockopen
- Versioned cache key helper (my_cache_key)
- Auto-flush on option/post/CF changes (no manual wp cache flush)
- WP-CLI command: wp dekart cache-flush
- Admin bar shows backend + cache version
2026-07-17 16:09:56 +00:00
Dekart Deploy Bot
b484d7ca19 Global-2026-07-13 2026-07-13 06:39:32 +00:00
Dekart Deploy Bot
ca70d76648 Global-2026-07-12 2026-07-12 14:34:24 +00:00
Dekart Deploy Bot
80f259cbee Test commit from debug 2026-06-28 12:13:20 +00:00
Dekart Deploy Bot
f3dc03cffc Final. Deploy ready 2026-05-19 14:11:49 +03:00