added opcode cache detection to Lang and Config save() methods. closes #1580