Skip to content

Commit

Permalink
Add Sofascore Purgatory Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Oct 28, 2024
1 parent 031dd84 commit 4be5c39
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
32 changes: 32 additions & 0 deletions sofascore/purgatory-bundle/1.0/config/packages/purgatory.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Read the full documentation at: https://sofascore.github.io/purgatory-bundle/

purgatory:
# Define patterns for routes whose controllers should not be checked for #[PurgeOn] attributes.
route_ignore_patterns: [ '/^_profiler/', '/^_wdt/' ]

# Define the purger to use. For Varnish, set it to "varnish". To create a custom purger, refer to:
# https://sofascore.github.io/purgatory-bundle/custom-purgers.html
purger:
name: symfony
# Specify the hosts from which URLs should be purged. This is primarily used by the Varnish purger.
# hosts: []

# To process purge requests asynchronously, configure the Symfony Messenger transport. For more details, visit:
# https://sofascore.github.io/purgatory-bundle/#configuring-asynchronous-processing
# messenger:
# transport: null
# # Set the number of URLs to dispatch per message. Defaults to using all URLs passed to the purger.
# batch_size: null

when@dev:
purgatory:
# Ignore all purge requests during development.
purger: void

when@test:
purgatory:
# Enable asserting in tests that the expected purge requests were dispatched. For details, see:
# https://sofascore.github.io/purgatory-bundle/#testing
purger: in-memory
# Disable collecting purge request data in the test environment.
profiler_integration: false
8 changes: 8 additions & 0 deletions sofascore/purgatory-bundle/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bundles": {
"Sofascore\\PurgatoryBundle\\PurgatoryBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
6 changes: 6 additions & 0 deletions sofascore/purgatory-bundle/1.0/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Getting Started with </><bg=blue;fg=white;options=bold>sofascore/purgatory-bundle</><bg=blue;fg=white> </>
<bg=blue;fg=white> </>

* <fg=blue>Configure</> a purger based on your HTTP cache backend in <comment>config/packages/purgatory.yaml</>
* <fg=blue>Read</> the complete documentation at <comment>https://sofascore.github.io/purgatory-bundle/</>

0 comments on commit 4be5c39

Please sign in to comment.