@dave I created a new image with lru_cache in both methods and it’s working perfectly, I tested with the same themes and configured a different theme for each site, which works perfectly.
default ✓ [======================================] 00/28 VUs 10m0s
http_req_duration..............: avg=633.36ms min=101.13ms med=606.9ms max=2.15s p(90)=1.13s p(95)=1.27s
themes-cache.prof (236.4 KB)