diff --git a/aiocache/decorators.py b/aiocache/decorators.py index 896cca85..f7f5887c 100644 --- a/aiocache/decorators.py +++ b/aiocache/decorators.py @@ -309,6 +309,9 @@ def __init__( def __call__(self, f): if self.alias: self.cache = caches.get(self.alias) + for arg in ("serializer", "namespace", "plugins"): + if getattr(self, f'_{arg}', None) is not None: + logger.warning(f"Using cache alias; ignoring '{arg}' argument.") else: self.cache = _get_cache( cache=self._cache,