Skip to content

Commit

Permalink
#200 - Add 'http_cache_invalidation' config setting to allow disablin…
Browse files Browse the repository at this point in the history
…g the

invalidation mechanism
  • Loading branch information
johanjanssens committed Nov 20, 2019
1 parent e748814 commit ed5f273
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions code/site/components/com_pages/resources/config/site.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
'cache_path' => $config['template_cache_path'] ?? $base_path.'/cache/templates',
],
'com://site/pages.dispatcher.behavior.cacheable' => [
'cache' => $config['http_cache'] ?? false,
'cache_path' => $config['http_cache_path'] ?? $base_path.'/cache/http',
'cache_time' => $config['http_cache_time'] ?? 60*15, //15min
'cache_time_shared' => $config['http_cache_time_proxy'] ?? 60*60*2, //2h
'cache' => $config['http_cache'] ?? false,
'cache_path' => $config['http_cache_path'] ?? $base_path.'/cache/http',
'cache_time' => $config['http_cache_time'] ?? 60*15, //15min
'cache_time_shared' => $config['http_cache_time_proxy'] ?? 60*60*2, //2h
'cache_invalidation' => $config['http_cache_invalidation'] ?? true,
],
'com://site/pages.data.client' => [
'cache' => $config['remote_cache'] ?? (JDEBUG ? false : true),
Expand Down

0 comments on commit ed5f273

Please sign in to comment.