Skip to content

Edit PHP’s realpath-cache-size, and realpath-cache-ttl for Drupal #134

Description

@mstenta

Drupal.org's official documentation recommends overriding PHP's default realpath-cache-size and realpath-cache-ttl to "noticeably decrease Drupal's initial page generation times."

https://www.drupal.org/docs/7/managing-site-performance/tuning-phpini-for-drupal

I am currently adding the following lines to my Dockerfile that inherits from drupal:7 to accomplish this:

# Set recommended realpath_cache settings.
# See https://www.drupal.org/docs/7/managing-site-performance/tuning-phpini-for-drupal
RUN { \
    echo 'realpath_cache_size=4096K'; \
    echo 'realpath_cache_ttl=3600'; \
  } > /usr/local/etc/php/conf.d/realpath_cache-recommended.ini

Would it be worth including these in the official Docker Hub images? If so, I would be happy to provide a pull request.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions