mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 10:03:56 +00:00
cache: Avoid caching /help/ documentation page content.
This should make it a lot less annoying to edit these pages locally, without regressing the test performance which motivated the cache.
This commit is contained in:
@@ -469,6 +469,10 @@ def ignore_unhashable_lru_cache(maxsize: int=128, typed: bool=False) -> DECORATO
|
||||
internal_decorator = lru_cache(maxsize=maxsize, typed=typed)
|
||||
|
||||
def decorator(user_function: Callable[..., Any]) -> Callable[..., Any]:
|
||||
if settings.DEVELOPMENT and not settings.TEST_SUITE: # nocoverage
|
||||
# In the development environment, we want every file
|
||||
# change to refresh the source files from disk.
|
||||
return user_function
|
||||
cache_enabled_user_function = internal_decorator(user_function)
|
||||
|
||||
def wrapper(*args: Any, **kwargs: Any) -> Any:
|
||||
|
||||
Reference in New Issue
Block a user