Studio view not refreshed on Save

After moving a SugarCRM instance from one server to another we discovered an issue in Studio.

When modifying something in Studio, like adding or removing fields and panels in the Record View layout of the Accounts module, after clicking Save & Deploy the change reverts back to the previous state. If the page is reloaded or I click on Record View again, it shows the changes I just applied.

In the screenshot below I just added New Panel 13 with Alternative Postal Code. Once I click Save & Deploy, it disappears right there. If I refresh or click on Record View again, it appears to be saved - did not actually disappear.

To make things weirder, if I change something again after clicking on Save & Deploy and my changes disappearing, everything that I change and Save & Deploy stays changed and does not disappear on my screen. Then it stays working correctly for the module I did this for until cache refresh, After cache refresh, this behaviour starts over.

Parents Reply
  • Hello Artis Plocins,

    We experience the same behaviour here.

    Have you found a solution on your side?

    Some other weird Studio behaviours seem to be related to this one. For example, we create a new dropdown field on a module, and we define a new dropdown list to associate it to the dropdown field. We can save the dropdown list but the list is not available in the dropdown field. We have to save the dropdown field as it is and then go back to the edit screen of this field to select the list we created...

    Kind Regards,

    Sylvain

Children
  • For anyone who end up here, the problem is solved for us (thank you sugar support).

    The issue is related to the Zend OpCache configuration.

    By default, Zend OpCache has the value ( opcache.revalidate_freq ) set to 2seconds.

    Because of the above default value, the changes in Studio are not updated immediately in the cache of Zend OpCache, thus you do not see them immediatelly in Studio.

    By changing that value to 0, you will be able to view the changes in Studio as expected.
    For the above change to be applied, you will have to restart apache.