From f953f807e4c4ce615379957fbe6f02564a4689c3 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Mon, 29 Mar 2021 10:38:15 +0300 Subject: [PATCH] added http_cache excluded file --- resources/streams/config/httpcache.php | 57 ++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 resources/streams/config/httpcache.php diff --git a/resources/streams/config/httpcache.php b/resources/streams/config/httpcache.php new file mode 100644 index 000000000..af2a2917a --- /dev/null +++ b/resources/streams/config/httpcache.php @@ -0,0 +1,57 @@ + env('HTTP_CACHE', false), + + /* + |-------------------------------------------------------------------------- + | DEFAULT TTL + |-------------------------------------------------------------------------- + | + | What is the default TTL value (seconds)? + | + */ + + 'ttl' => env('HTTP_CACHE_TTL', 3600), + + /* + |-------------------------------------------------------------------------- + | EXCLUDED PATHS + |-------------------------------------------------------------------------- + | + | Specify cache-excluded paths. + | Use * for partial matching. + | + */ + + 'excluded' => [ + '/advs/create_adv', + '/advs/edit_advs/*', + '/profile', + '/profile/*', + '/ajax/*', + ], + + /* + |-------------------------------------------------------------------------- + | TIMEOUT RULES + |-------------------------------------------------------------------------- + | + | Specify timeout rules per path. + | Use * for partial matching. + | + */ + + 'rules' => explode(',', env('HTTP_CACHE_RULES', '')), + +];