How to set mariadb read_write for some specific tables while starting as read_only=1
Plan A:  Turn off read_only and hope that no one abuses it (accidentally or deliberately).

Plan B:  Run the 'cache' stuff as some user with SUPER so that it can bypass read_only.  This seems more secure than Plan A, but opens up other risks.