Compare commits

...

1 Commits

Author SHA1 Message Date
fenix cf31824f03 fix: add auto_cache to sshfs mounts to prevent stale reads in Emacs
sshfs kernel cache caused Emacs to show outdated file contents after
edits via Claude Code. Adding auto_cache invalidates cache when
mtime/size changes, fixing the stale data problem without sacrificing
performance.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-02 21:50:50 +01:00
3 changed files with 4 additions and 2 deletions

View File

@ -332,6 +332,7 @@ sudo tail -f /var/log/nginx/napi-error.log # Nginx errors
| `twemoji is not defined` | Falta `twemoji.min.js` en el root del site | `sudo cp /var/www/napi/twemoji.min.js /var/www/napiN/` |
| `404` en `/notas.md` | Carpeta del alumno no existe en `data/` | Crear carpeta + copiar plantilla |
| sshfs zombie | Conexión SSH caída | `fusermount -uz ~/napi-dataN && systemctl --user restart ...mount` |
| Emacs muestra datos stale tras editar | sshfs cachea lecturas del kernel | Añadir `auto_cache` a las Options del mount (ver abajo) |
| Watcher no detecta re-entregas | Versión antigua del watcher | Actualizar a v7+ y reiniciar servicio |
| `__pycache__` en notificaciones | Watcher < v6 | Actualizar a v7+ |
@ -355,4 +356,5 @@ sudo tail -f /var/log/nginx/napi-error.log # Nginx errors
| 2026-02-22 | MVP desplegado: notas.qu3v3d0.tech para DDAW2 (19 alumnos) |
| 2026-02-25 | ASIR1 desplegado: asir1.qu3v3d0.tech para Programación (21 alumnos) |
| 2026-02-25 | Watcher ASIR1 v7: batching, re-entregas, Windows-safe, __pycache__ filter, nombres completos |
| 2026-03-02 | sshfs mounts: añadido `auto_cache` para evitar datos stale en Emacs |
| 2027-02-04 | Renovar certificado SSL wildcard (caduca ~365 días desde 2026-02-04) |

View File

@ -7,7 +7,7 @@ Wants=network-online.target
What=fenix@qu3v3d0.tech:/var/www/napi/data
Where=/home/fenix/napi-data
Type=fuse.sshfs
Options=reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,IdentityFile=/home/fenix/.ssh/id_rsa,_netdev,allow_other
Options=reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,IdentityFile=/home/fenix/.ssh/id_rsa,_netdev,allow_other,auto_cache
[Install]
WantedBy=default.target

View File

@ -7,7 +7,7 @@ Wants=network-online.target
What=fenix@qu3v3d0.tech:/var/www/napi2/data
Where=/home/fenix/napi-data2
Type=fuse.sshfs
Options=reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,IdentityFile=/home/fenix/.ssh/id_rsa,_netdev,allow_other
Options=reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,IdentityFile=/home/fenix/.ssh/id_rsa,_netdev,allow_other,auto_cache
[Install]
WantedBy=default.target