Skip to content

Opcache + Twig Templates #12172

@trsteel88

Description

@trsteel88

I know this probably isn't a Symfony thing but it seems to only be happening within my Symfony apps.

We are running PHP 5.5.13 with Opcache enabled. Whenever we deploy, the templates within Twig never update. We have to restart apache before these take effect.

We are deploying with Capifony and using Symlinks. I am not quite sure if this is an issue on PHP's side of things or if there is a work around that people may know of.

Here is my php opcache config:

[opcache]
opcache.memory_consumption=512
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=2
opcache.revalidate_path=1
opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.enable=1
opcache.validate_timestamps=1
opcache.enable_file_override=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions