Use v9 ormcache.

pull/2334/head
Jairo Llopis 2016-07-20 14:35:42 +02:00 committed by Fernando La Chica
parent 39131a377b
commit e87a64fa79
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class Image(models.Model):
return self._get_image_from_url_cached(self.url)
@api.model
@tools.ormcache(skiparg=1)
@tools.ormcache("url")
def _get_image_from_url_cached(self, url):
"""Allow to download an image and cache it by its URL."""
if url: