From af7420220a76b8fc1582d9ebef1f3ce88a5ab584 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Fri, 1 Dec 2023 02:18:45 +0000 Subject: [PATCH] Disable static cache --- .htaccess | 8 ++++---- site/config/config.bradshaws.guide.php | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.htaccess b/.htaccess index 1bfda306..ec0a71f1 100644 --- a/.htaccess +++ b/.htaccess @@ -2,10 +2,10 @@ RewriteEngine on # Serve pages from static page cache - RewriteCond %{DOCUMENT_ROOT}/site/cache/%{SERVER_NAME}/pages/%{REQUEST_URI}/index.html -f [NC] - RewriteRule ^(.*) %{DOCUMENT_ROOT}/site/cache/%{SERVER_NAME}/pages/%{REQUEST_URI}/index.html [END] - RewriteCond %{DOCUMENT_ROOT}/site/cache/%{SERVER_NAME}/pages/%{REQUEST_URI} -f [NC] - RewriteRule ^(.*) %{DOCUMENT_ROOT}/site/cache/%{SERVER_NAME}/pages/%{REQUEST_URI} [END] + # RewriteCond %{DOCUMENT_ROOT}/site/cache/%{SERVER_NAME}/pages/%{REQUEST_URI}/index.html -f [NC] + # RewriteRule ^(.*) %{DOCUMENT_ROOT}/site/cache/%{SERVER_NAME}/pages/%{REQUEST_URI}/index.html [END] + # RewriteCond %{DOCUMENT_ROOT}/site/cache/%{SERVER_NAME}/pages/%{REQUEST_URI} -f [NC] + # RewriteRule ^(.*) %{DOCUMENT_ROOT}/site/cache/%{SERVER_NAME}/pages/%{REQUEST_URI} [END] # Serve files from public subfolder RewriteCond %{HTTPS_HOST} ^bradshaws.guide$ [NC,OR] diff --git a/site/config/config.bradshaws.guide.php b/site/config/config.bradshaws.guide.php index 01096a1f..0eafb5cd 100755 --- a/site/config/config.bradshaws.guide.php +++ b/site/config/config.bradshaws.guide.php @@ -4,7 +4,6 @@ "cache" => [ "pages" => [ "active" => true, - "type" => "static", ], ], "debug" => false,