diff --git a/Dockerfile b/Dockerfile index b505e56..09b24a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y \ libmagickwand-dev \ unzip \ && docker-php-ext-configure gd --with-jpeg --with-webp \ - && docker-php-ext-install pdo_sqlite zip gd \ + && docker-php-ext-install pdo_sqlite zip gd opcache \ && pecl install imagick \ && docker-php-ext-enable imagick diff --git a/bookmarks.php b/bookmarks.php index 0a68eef..0f62a74 100644 --- a/bookmarks.php +++ b/bookmarks.php @@ -467,7 +467,7 @@ require_once 'include/header.php';
  • - + > diff --git a/docker/php.ini b/docker/php.ini index 5efcf4d..7e20906 100644 --- a/docker/php.ini +++ b/docker/php.ini @@ -4,6 +4,15 @@ memory_limit = 512M max_execution_time = 300 extension=imagick.so +[opcache] +opcache.enable=1 +opcache.memory_consumption=128 +opcache.interned_strings_buffer=8 +opcache.max_accelerated_files=4000 +opcache.revalidate_freq=60 +opcache.fast_shutdown=1 +opcache.enable_cli=1 + ; Session configuration session.cookie_lifetime = 86400 session.gc_maxlifetime = 86400 diff --git a/include/header.php b/include/header.php index 6fdfde5..8d87077 100644 --- a/include/header.php +++ b/include/header.php @@ -62,6 +62,7 @@ if ($theme === 'dark' || in_array('dark-background-active', $body_classes)) { + diff --git a/index.php b/index.php index c9b5ba6..6581d3d 100644 --- a/index.php +++ b/index.php @@ -166,7 +166,7 @@ require_once 'include/header.php'; ?>