##// END OF EJS Templates
invalidation: simplify get_prefix...
Mads Kiilerich -
r3683:df57253e beta
parent child Browse files
Show More
@@ -1656,10 +1656,7 class CacheInvalidation(Base, BaseModel)
1656 1656 Guess prefix that might have been used in _get_cache_key to generate self.cache_key .
1657 1657 Only used for informational purposes in repo_edit.html .
1658 1658 """
1659 _split = self.cache_key.split(self.cache_args, 1)
1660 if len(_split) == 2:
1661 return _split[0]
1662 return ''
1659 return self.cache_key.split(self.cache_args, 1)[0]
1663 1660
1664 1661 @classmethod
1665 1662 def _get_cache_key(cls, key):
General Comments 0
You need to be logged in to leave comments. Login now