-
-
Notifications
You must be signed in to change notification settings - Fork 175
Description
Hello,
The issue,
- I can't find anyway to clear cache or "clear cache buttons" in admin ui / setting / cache plugin.
- Testing cache api admin/cache/states return 404 error in the browse, even tested with curl its still not working too.
The issue appear in the default installation/deployment, i didn't create or add anything to the project yet.
I will be very thankful if i could have some guidance, I'm not a developer but i try my best using Ai to setup and deploy this project.
- current version: sonicjs cms v[2.3.13]
- Local dev environment: GitHub Codepaces "online"
- Already deployed on cloudflare
- Kv, R2, D1 already setup and bind correctly.
.env
SONICJS_TELEMETRY=false
SONICJS_D1_DATABASE=D1_name
SONICJS_MEDIA_BUCKET=R2_name
SONICJS_CACHE_NAMESPACE=KV_name
SONICJS_RUN_MIGRATIONS=false
ENVIRONMENT=development
SONICJS_EMAIL_ENABLED=true
SONICJS_ENABLE_MEDIA=true
SONICJS_ENABLE_ADVANCED_UI=true
Wrangler.toml
name = "app-name"
main = "src/index.ts"
compatibility_date = "2024-01-01"
compatibility_flags = ["nodejs_compat"]
Cloudflare Workers settings
workers_dev = true
D1 Database
[[d1_databases]]
binding = "DB"
database_name = "d1_name"
database_id = "xxxxxxxxxxxxxxxx" # Run: wrangler d1 create my-sonicjs-db
remote = true
migrations_dir = "./node_modules/@sonicjs-cms/core/migrations"
R2 Bucket for media storage
[[r2_buckets]]
binding = "MEDIA_BUCKET"
bucket_name = "R2_name"
remote = true
KV database for cacheing
[[kv_namespaces]]
binding = "CACHE_KV"
id = "xxxxxxxxxxxxxxxxxx" # ← replace with real ID
preview_id = "xxxxxxxxxxxxxxxxx"
remote = true
Environment variables
[vars]
ENVIRONMENT = "production"
SONICJS_TELEMETRY = "false"
SONICJS_EMAIL_ENABLED = "true"
SONICJS_ENABLE_MEDIA = "true"
SONICJS_ENABLE_ADVANCED_UI = "true"
SONICJS_RUN_MIGRATIONS = "false"
Observability
[observability]
enabled = true
screenshots
