diff options
-rw-r--r-- | pypaste/server/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pypaste/server/__init__.py b/pypaste/server/__init__.py index 8357949..5f34338 100644 --- a/pypaste/server/__init__.py +++ b/pypaste/server/__init__.py @@ -27,8 +27,10 @@ from pygments.styles import get_style_by_name from abc import abstractmethod from secrets import choice from pypaste import WORDLIST +from functools import lru_cache +@lru_cache(16) def pygmentize( content: str, syntax: Optional[str], style: str, line_numbers: str | bool ) -> str: |