1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

bitbake: toaster: Enable toastertable cache

Enable the cache and fix warning on the toastertable cache which happens
on the memcache backend "CacheKeyWarning: Cache key contains characters that
will cause errors if used with memcached"

(Bitbake rev: 330692e4e2e4dea59f70caa03001905ffff4860a)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood
2015-06-18 14:11:28 +01:00
committed by Richard Purdie
parent f28116ec10
commit 93c54c2f9d
+5 -2
View File
@@ -36,6 +36,7 @@ import types
import json
import collections
import operator
import re
from toastergui.views import objtojson
@@ -251,10 +252,12 @@ class ToasterTable(TemplateView):
for key, val in kwargs.iteritems():
cache_name = cache_name + str(key) + str(val)
# No special chars allowed in the cache name
cache_name = re.sub(r'[^A-Za-z0-9]', "", cache_name)
data = cache.get(cache_name)
#if data:
# return data
if data:
return data
self.setup_columns(**kwargs)