diff --git a/system/config/system.yaml b/system/config/system.yaml index c99a173a3..42cd16999 100644 --- a/system/config/system.yaml +++ b/system/config/system.yaml @@ -22,7 +22,7 @@ pages: cache: enabled: true # Set to true to enable caching check: - method: page # Method to check for updates in pages: page|folder|none + method: file # Method to check for updates in pages: file|folder|none driver: auto # One of: auto|file|apc|xcache|memcache|memcached|wincache prefix: 'g' # Cache prefix string (prevents cache conflicts) diff --git a/system/src/Grav/Common/Page/Pages.php b/system/src/Grav/Common/Page/Pages.php index 1d6dcef6a..cd13a89b9 100644 --- a/system/src/Grav/Common/Page/Pages.php +++ b/system/src/Grav/Common/Page/Pages.php @@ -359,8 +359,8 @@ class Pages $last_modified = 0; - // how should we check for last modified? Default is by page - switch (strtolower($config->get('system.cache.check.method', 'page'))) { + // how should we check for last modified? Default is by file + switch (strtolower($config->get('system.cache.check.method', 'file'))) { case 'none': case 'off': $last_modified = 0; diff --git a/user/config/system.yaml b/user/config/system.yaml index 43efc8222..bb0d73c73 100644 --- a/user/config/system.yaml +++ b/user/config/system.yaml @@ -11,7 +11,7 @@ pages: cache: enabled: true check: - method: page + method: file driver: auto prefix: 'g'