Skip to content

Increased performance by 10% with enabling opcache file caching #351

Open
@choward420

Description

Not sure how to approach this but was hoping you could include in the build.

Changed /etc/php81/conf.d/opcache.ini

FROM:
opcache.enable=1
opcache.enable_cli=1
opcache.fast_shutdown=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=10000
opcache.revalidate_freq=60

TO:
opcache.enable=1
opcache.enable_cli=1
opcache.fast_shutdown=1
opcache.file_cache="/tmp/cache/"
opcache.file_cache_only=0
opcache.file_cache_consistency_checks=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=10000
opcache.revalidate_freq=60

Ran the following based off of librenms performance recommendations:
mkdir -p /tmp/cache && chmod 775 /tmp/cache && chown -R librenms /tmp/cache

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions