OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Clearing OPCache after adding a Product Attribute

This topic contains 1 reply, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 1 week, 3 days ago.

  • Creator
    Topic
  • #40383

    marius.negoescu
    Participant

    Hi, guys

    We have OpCache enabled on the server and if we create a new attribute we need to clear OpCache in order to have it available to the system.

    After we create the product attribute and update the schema, the site breaks due to OP Cache.

    Is there anything in orocommerce which we could run to clear the OpCache.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #40385
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Hi Marius,
    Enabling opcache for CLI is not supported by Oro application, because of entity extend component architecture.

    As for the opcache for request-response flow, you should not disable timestamps validation. Otherwise, add a blacklist for OpCache.

    For example:

    Recommended configuration for opcache can be found here:
    https://oroinc.com/b2b-ecommerce/doc/current/install-upgrade/recommendations/optimize-performance#optimize-php-runtime-compilation

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No