Speed-up caching
This commit is contained in:
1 parent
6c8707f08b
commit
ec95543395
5 files changed
+14
-4
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -467,7 +467,7 @@ require_once 'include/header.php';
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center" data-id="<?php echo $bookmark['id']; ?>">
|
||||
<span>
|
||||
<i class="bi bi-grip-vertical sort-handle" style="cursor: move;"></i>
|
||||
<img src="<?php echo $icon_src; ?>" class="ms-2 me-2" style="width: 16px; height: 16px;" onerror="this.onerror=null;this.src='include/images/default-icon.png';">
|
||||
<img src="<?php echo $icon_src; ?>" class="ms-2 me-2" style="width: 16px; height: 16px;" loading="lazy" onerror="this.onerror=null;this.src='include/images/default-icon.png';">
|
||||
<a href="<?php echo htmlspecialchars($bookmark['url']); ?>" <?php if($settings['open_new_tab'] ?? '1' === '1') echo 'target="_blank"'; ?>><?php echo htmlspecialchars($bookmark['title']); ?></a>
|
||||
<?php if ($bookmark['is_favorite']): ?>
|
||||
<i class="bi bi-star-fill text-warning" title="Favorite"></i>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -62,6 +62,7 @@ if ($theme === 'dark' || in_array('dark-background-active', $body_classes)) {
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo htmlspecialchars($settings['site_favicon'] ?? $settings['site_logo'] ?? 'include/images/favicon.ico'); ?>">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="<?php echo htmlspecialchars($settings['site_favicon'] ?? $settings['site_logo'] ?? 'include/images/favicon.ico'); ?>">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="<?php echo htmlspecialchars($settings['site_favicon'] ?? $settings['site_logo'] ?? 'include/images/favicon.ico'); ?>">
|
||||
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet">
|
||||
<link href="include/css/style.css" rel="stylesheet">
|
||||
|
||||
@@ -166,7 +166,7 @@ require_once 'include/header.php';
|
||||
?>
|
||||
<div class="col-lg-2 col-md-3 col-sm-4 col-6 mb-3">
|
||||
<a href="<?php echo htmlspecialchars($bookmark['url']); ?>" <?php echo $target_attr; ?> class="btn d-flex align-items-center text-start p-2 bookmark-link">
|
||||
<img src="<?php echo $icon_src; ?>" alt="" class="bookmark-favorite-icon me-3" onerror="this.onerror=null;this.src='include/images/default-icon.png';">
|
||||
<img src="<?php echo $icon_src; ?>" alt="" class="bookmark-favorite-icon me-3" loading="lazy" onerror="this.onerror=null;this.src='include/images/default-icon.png';">
|
||||
<div>
|
||||
<span><?php echo htmlspecialchars($bookmark['title']); ?></span>
|
||||
<small class="d-block text-muted"><?php echo htmlspecialchars($display_url); ?></small>
|
||||
@@ -209,7 +209,7 @@ require_once 'include/header.php';
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo htmlspecialchars($bookmark['url']); ?>" <?php echo $target_attr; ?> class="list-group-item list-group-item-action d-flex align-items-center">
|
||||
<img src="<?php echo $icon_src; ?>" alt="" class="bookmark-icon me-2" onerror="this.onerror=null;this.src='include/images/default-icon.png';">
|
||||
<img src="<?php echo $icon_src; ?>" alt="" class="bookmark-icon me-2" loading="lazy" onerror="this.onerror=null;this.src='include/images/default-icon.png';">
|
||||
<span><?php echo htmlspecialchars($bookmark['title']); ?></span>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
|
||||
Reference in new issue
Block a user