Fixed mysql caching.
This commit is contained in:
parent
2abc386f48
commit
615b8f46a3
|
@ -28,15 +28,14 @@ from ExtensionCrawler.util import log_info, log_error, log_exception
|
||||||
|
|
||||||
|
|
||||||
class MysqlBackend:
|
class MysqlBackend:
|
||||||
cache = {}
|
|
||||||
db = None
|
|
||||||
cursor = None
|
|
||||||
|
|
||||||
def __init__(self, ext_id, try_wait=config.const_mysql_try_wait(), maxtries=config.const_mysql_maxtries(), **kwargs):
|
def __init__(self, ext_id, try_wait=config.const_mysql_try_wait(), maxtries=config.const_mysql_maxtries(), **kwargs):
|
||||||
self.ext_id = ext_id
|
self.ext_id = ext_id
|
||||||
self.dbargs = kwargs
|
self.dbargs = kwargs
|
||||||
self.try_wait = try_wait
|
self.try_wait = try_wait
|
||||||
self.maxtries = maxtries
|
self.maxtries = maxtries
|
||||||
|
self.cache = {}
|
||||||
|
self.db = None
|
||||||
|
self.cursor = None
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
self._create_conn()
|
self._create_conn()
|
||||||
|
|
Loading…
Reference in New Issue