The SQLite version that you are actually using in your Qt program does not yet implement PRAGMA cache_spill
.
SQLite just ignores any PRAGMA it does not recognize.
As documented, PRAGMA case_sensitive_like
does not allow reading the current value.