GitHub user dosubot[bot] added a comment to the discussion: Deck.gl map change
style directly on dashboard
<!-- Answer -->
To set `THUMBNAIL_CACHE_CONFIG` to use a local folder instead of S3 in
Superset, you can configure it to use `FileSystemCache` with a specified
directory path. Here's how you can modify the configuration:
```python
from flask_caching.backends.filesystemcache import FileSystemCache
THUMBNAIL_CACHE_CONFIG = {
"CACHE_TYPE": "FileSystemCache",
"CACHE_DIR": "/path/to/local/folder", # specify your local folder path here
"CACHE_DEFAULT_TIMEOUT": 300,
}
```
Replace `"/path/to/local/folder"` with the path to the local directory where
you want to store the thumbnails. Additionally, ensure that the feature flag
for thumbnails is enabled in your configuration:
```python
FEATURE_FLAGS = {
"THUMBNAILS": True,
"THUMBNAILS_SQLA_LISTENERS": True,
}
```
This setup will allow thumbnails to be cached locally, and you will need to
have Celery workers configured to process them asynchronously
<sup>[[1]](https://github.com/apache/superset/blob/master/docker/pythonpath_dev/superset_config.py)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/docs/docs/configuration/cache.mdx)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/f52182dd-5857-44b8-a6cd-0d47169ca2fb?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/f52182dd-5857-44b8-a6cd-0d47169ca2fb?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/f52182dd-5857-44b8-a6cd-0d47169ca2fb?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/f52182dd-5857-44b8-a6cd-0d47169ca2fb?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/f52182dd-5857-44b8-a6cd-0d47169ca2fb?feedback_type=hallucination)
| [Bug
Report](https://app.dosu.dev/response-feedback/f52182dd-5857-44b8-a6cd-0d47169ca2fb?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/f52182dd-5857-44b8-a6cd-0d47169ca2fb?feedback_type=other)</sup>
GitHub link:
https://github.com/apache/superset/discussions/32149#discussioncomment-13118351
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]