WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

Update `cache` argument in docs

Open OmeGak opened this issue 1 year ago • 1 comments

The image_cache option specified in the documentation is not correct. The correct option is cache. Using image_cache leads to no cache being applied at all, as the option is completely ignored without warning. It would be useful to fail when passing invalid options, to avoid them silently not being applied.

OmeGak avatar Jun 27 '24 13:06 OmeGak

The image_cache option specified in the documentation is not correct.

Thank you!

It would be useful to fail when passing invalid options, to avoid them silently not being applied.

Yes, it would be useful. Comparing the options keys to the ones in DEFAULT_OPTIONS in render should work.

liZe avatar Jun 27 '24 14:06 liZe

Thanks!

liZe avatar Jul 03 '24 09:07 liZe

It was my pleasure! 🙏

OmeGak avatar Jul 03 '24 09:07 OmeGak