Back to Changelog
v1.0.233
Backend startup i18n locale sync skips unchanged files via SHA-256 hash check, eliminating 2-6 minute PostgreSQL CPU spikes on every restart.
Improvements
4- i18n startup importer now records per-file SHA-256 hashes in /opt/panelica/var/i18n/.import-state.json and skips files that have not changed since the last import
- Restart time with unchanged locales reduced from ~6 minutes to ~6 seconds on a 24-core system; PostgreSQL CPU drops from 30%+ to under 5%
- Defensive fallbacks ensure full import still runs on empty DB, missing or corrupt state file, or any file hash mismatch — no translation gaps possible
- ReloadAllLocalesFromDisk in translation_service.go now refreshes the import state file after a full import so the next restart correctly detects up-to-date hashes
Bug Fix
1- Eliminated 2-6 minute PostgreSQL CPU spike (30%+) on every backend restart caused by unconditional re-import of all 31 locale files (~31x24K translation rows written each time)