mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-02 11:15:24 +02:00
Remove beaker cache for now...
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
from beaker.cache import CacheManager
|
||||
from beaker.util import parse_cache_config_options
|
||||
from titanembeds.database import db, Guilds, KeyValueProperties
|
||||
from flask import request, session
|
||||
from flask_limiter import Limiter
|
||||
@ -8,14 +6,6 @@ import random
|
||||
import string
|
||||
import hashlib
|
||||
|
||||
cache_opts = {
|
||||
'cache.type': 'ext:database',
|
||||
'cache.lock_dir': 'tmp/cachelock',
|
||||
'cache.url': config["database-uri"],
|
||||
'cache.sa.pool_recycle': 250,
|
||||
}
|
||||
cache = CacheManager(**parse_cache_config_options(cache_opts))
|
||||
|
||||
from titanembeds.discordrest import DiscordREST
|
||||
|
||||
discord_api = DiscordREST(config['bot-token'])
|
||||
|
Reference in New Issue
Block a user