forked from symphonycms/jit_image_manipulation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configurable cache invalidation odds
This commits adds a new hidden configuration value, `cache_invalidation_odds` which allows developer to control how often cache is validated. This is particularly usefull on stressed servers, and even better if serving remote images, since it can lead to a 60% request time diminution. The default behaviour is not changed and cache validation will always occur. It also updates the x-jit debug header to specify the result of the cache validation Fixes symphonycms#138
- Loading branch information
Showing
2 changed files
with
54 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters