mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
added http_cache excluded file
This commit is contained in:
parent
4d3d8dd26a
commit
f953f807e4
57
resources/streams/config/httpcache.php
Normal file
57
resources/streams/config/httpcache.php
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| HTTP CACHE ENABLED
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Do you want to enable HTTP caching?
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'enabled' => 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', '')),
|
||||||
|
|
||||||
|
];
|
||||||
Loading…
Reference in New Issue
Block a user