I currently have the php.ini file and .opcache folder inside the root
of main wordpress site, though i’d like to know if it’s effective for
the other wordpress site i have in a subfolder.

Checking the .opache folder seems to not reference any data from this second other
wordpress, but just the main one. Should i have placed another php.ini file and .opcache in that subfolder site so it can work?