You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/image-caching.md
+26-16Lines changed: 26 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,26 +20,36 @@ To force a revalidation, you can either:
20
20
3. change the [version number](/available-options#version) in the options (e.g. `version=2`)
21
21
4. or flush the entire cache of your application using the `php artisan cache:clear` command.
22
22
23
+
## Cache Size Limit
24
+
25
+
The image caching feature also comes with a size limit to prevent the cache from growing indefinitely. The default maximum size is set to **100 MB**, but you can change this in the configuration file.
26
+
27
+
When the cache reaches the specified size limit, it will automatically clean up old files to make space for new ones.
28
+
29
+
You may also configure the percentage of the maximum size that should be kept after cleanup, referred to as `clear_to_percent`.
30
+
For example, if `clear_to_percent` is set to 80, 20% of the cache is cleared on each cleanup run, and 80% is retained. The default is set to 80% of the maximum size.
31
+
23
32
---
24
33
25
34
You can configure the caching options in the `image-transform-url.php` configuration file:
0 commit comments