Skip to content

Disabling apcu and opcache for local development? #237

Closed Answered by cizordj
freiondrej-lmc asked this question in Q&A
Discussion options

You must be logged in to vote

You can try disabling the opcache via environment variables or via php-ini-overrides.ini. Try putting this into your docker-compose file, in the PHP section:

environment:
      PHP_OPCACHE_VALIDATE_TIMESTAMPS: "1"
      PHP_OPCACHE_PRELOAD: ""

Or if you prefer the ini method:
php-ini-overrides.ini

opcache.enable=0

docker-compose.yaml

  php:
    volumes:
      - ./path-to-your/config-directory/php-ini-overrides.ini:/etc/php/7.4/fpm/conf.d/99-overrides.ini

This should not affect your production setup.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@freiondrej-lmc
Comment options

@cizordj
Comment options

@freiondrej-lmc
Comment options

@cizordj
Comment options

Answer selected by freiondrej-lmc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants