Commit Graph

180 Commits

Author SHA1 Message Date
Dekart Deploy Bot
5b44ed893b Global 2026-07-23 2026-07-23 18:13:49 +00:00
Dekart Deploy Bot
34845fcdab Global 2026-07-23 2026-07-23 17:47:31 +00:00
Dekart Deploy Bot
2d0cb49a7d Global 2026-07-22 2026-07-22 19:38:39 +00:00
Dekart Deploy Bot
eef436b53c Global 2026-07-22 2026-07-22 19:18:10 +00:00
Dekart Deploy Bot
99e3cb6205 Global 2026-07-22 2026-07-22 19:09:53 +00:00
Dekart Deploy Bot
8e22416209 Global 2026-07-20 2026-07-20 07:45:04 +00:00
Dekart Deploy Bot
43809b0da2 Global 2026-07-20 functions.php 2026-07-20 07:09:09 +00:00
Dekart Deploy Bot
aca5243154 Global 2026-07-20 functions.php 2026-07-20 07:01:30 +00:00
Dekart Deploy Bot
f12b4daf00 Global 2026-07-20 2026-07-20 06:56:46 +00:00
Dekart Deploy Bot
3da551a7f5 Global 2026-07-19 ПКШ 2026-07-19 08:10:07 +00:00
Dekart Deploy Bot
1ae91db9c9 Global 2026-07-19 ПКШ 2026-07-19 08:06:36 +00:00
Dekart Deploy Bot
08a53760c6 Global 2026-07-19 ПКШ 2026-07-19 07:53:51 +00:00
Dekart Deploy Bot
8f91d6e177 Global 2026-07-18 ПКШ + программа 2026-07-18 16:05:15 +00:00
Dekart Deploy Bot
9ed786b881 Global 2026-07-17 2026-07-17 21:17:18 +00:00
Dekart Deploy Bot
37eae6ae52 fix: wp_cache_flush возвращает null в Memcached drop-in
- flush() в object-cache.php не имеет return → null
- PHP считает null за false → ложноe предупреждение
- Убрал проверку возврата, просто вызываю
2026-07-17 20:54:38 +00:00
Dekart Deploy Bot
7566f4da53 feat: detailed cache diagnostics with file checks
- AJAX returns structured log array (type + text per step)
- Checks: all system files, PHP extension, drop-in status,
  WP_CACHE_KEY_SALT, versioned cache, object cache, transients
- Drop-in auto-copy with success/fail/permission diagnostics
- JS renders log as color-coded list with summary line
- Fix for previous commit: plugin memcached not found typo
2026-07-17 20:52:38 +00:00
Dekart Deploy Bot
60a0847501 feat: flush-cache button auto-installs memcached drop-in
- Button copies wp-content/plugins/memcached/object-cache.php
  to wp-content/object-cache.php if not present
- Reports status: installed, failed, or plugin missing
- Updated page description
2026-07-17 20:49:51 +00:00
Dekart Deploy Bot
6a7064209b fix: page-podgotovka-k-shkole.php CSS/JS never enqueued
- is_page_template() was called at top level of functions.php
  (before query setup) → always returned false
- CSS podgotovka-k-shkole.css and JS never loaded → page unstyled
- Moved enqueue into enqueue_template_specific_styles() (hooked
  to wp_enqueue_scripts) where is_page_template() works correctly
- Also moved front-page.css enqueue (same bug)
- Also removed stray extra closing brace
2026-07-17 20:39:38 +00:00
Dekart Deploy Bot
7c17536c4f refactor: move flush cache button to dedicated submenu page
- Removed cache button from branch settings page
- Added submenu page 'Сбросить кэш' under 'Настройки филиала'
- Same AJAX handler, cleaner dedicated page with big hero button
2026-07-17 20:30:09 +00:00
Dekart Deploy Bot
c2125d7dcc feat: add flush cache button to branch settings page
- Button 'Сбросить кэш' under Настройки филиала
- AJAX handler dekart_ajax_flush_cache():
  - my_cache_bump_version() (MU-plugin versioned cache)
  - wp_cache_flush() (Memcached/Redis drop-in)
  - DELETE all _transient_* options
- Shows success/error notice inline, no page reload
2026-07-17 20:28:36 +00:00
Dekart Deploy Bot
a6222a31ab fix: restore MU-plugin cache logic with WP_CACHE_KEY_SALT isolation
- Root cause: two prod sites share one Memcached, no WP_CACHE_KEY_SALT
  → cache keys collide → data mixes between sites
- Primary fix: WP_CACHE_KEY_SALT defined via DB_NAME in wp-config.php
  (manual on each prod, file is in .gitignore)
- MU-plugin restored: auto-detect backend, versioned keys, auto-invalidation
- Added re-salt fallback via salt_keys(DB_NAME) on muplugins_loaded
- Removed duplicate admin_notice hooks
2026-07-17 20:07:16 +00:00
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
2c84bf3989 fix: meta box cleanup for pksh page — load-post.php hook
- Хук load-post.php вместо add_meta_boxes (пост уже загружен)
- Удаляются: посткастом, обсуждение, комментарии, ярлык,
  автор, ревизии, цитата, атрибуты страницы
2026-07-17 19:09:23 +00:00
Dekart Deploy Bot
1b5f62a758 Global 2026-07-17 2026-07-17 19:06:06 +00:00
Dekart Deploy Bot
032b1ce48a Global 2026-07-17 2026-07-17 18:50:14 +00:00
Dekart Deploy Bot
547e3728a9 fix: add btn-write-camp to B24 modal trigger selector
- Кнопки на странице /gorodskoj-lager/ используют класс
  btn-write-camp, но footer.js слушал только .btn-write
- Добавлен .btn-write-camp в селектор делегированного события
- Форма B24 теперь открывается с кнопок лагеря
2026-07-17 18:37:34 +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
dcd71303c8 Global-2026-07-17 2026-07-17 16:46:58 +00:00
Dekart Deploy Bot
83b96d92fc Global-2026-07-17 2026-07-17 16:44:13 +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
0966da4243 Global-2026-07-17 2026-07-17 16:10:56 +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
17fa35edc3 Global-2026-07-17 2026-07-17 15:26:58 +00:00
Dekart Deploy Bot
2f3f5bb98e Global-2026-07-16 2026-07-15 21:45:22 +00:00
Dekart Deploy Bot
0a1813337b Global-2026-07-15 2026-07-15 14:43:40 +00:00
Dekart Deploy Bot
31a9f144a8 Global-2026-07-15 2026-07-15 14:27:42 +00:00
Dekart Deploy Bot
d0492112e8 Global-2026-07-15 2026-07-15 14:15:56 +00:00
Dekart Deploy Bot
3d9218df11 Global-2026-07-15 2026-07-15 14:15:56 +00:00
Dekart Deploy Bot
15ac1f81aa Global-2026-07-14 2026-07-14 14:47:01 +00:00
Dekart Deploy Bot
caecf7da52 Global-2026-07-14 2026-07-14 12:46:14 +00:00
Dekart Deploy Bot
d8f11ba4d1 feat: add llms.txt for AI crawler discovery 2026-07-14 12:33:33 +00:00
Dekart Deploy Bot
a7caf5b935 Global-2026-07-13 2026-07-13 11:19:14 +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
1fa6f06ccf Global-2026-07-12 2026-07-12 13:06:48 +00:00
Dekart Deploy Bot
d5dceedef6 Global-2026-07-12 2026-07-12 11:52:30 +00:00