Changes adding cache option for sql and layer definition ajax requests