Limits and invocations
The exact daily, monthly and storage quotas for Sites, and how to spend fewer invocations.
Quotas are shared across all your sites, preview versions included. Five small sites do not get five allowances — they draw down the same pool.
Daily limits
| Limit | Per day |
|---|---|
| Invocations | 10,000 |
| Database row writes | 10,000 |
| Server-side CPU time | 500 seconds |
| Class A S3 operations (listing and writing files) | 2,500 |
Monthly limits
| Limit | Per month |
|---|---|
| Invocations | 100,000 |
| Server-side CPU time | 5,000 seconds |
| Database row writes | 100,000 |
| Database row reads | 50,000,000 |
| Class A S3 operations | 25,000 |
| Class B S3 operations (reading files) | 250,000 |
How Cloudflare counts database rows, and what singles out a write from a read, is documented in Cloudflare's D1 definitions.
Storage limits
| Limit | Value |
|---|---|
| Total database storage (all sites) | 100 MB |
| Total S3 storage (all sites) | 1 GB |
| Single static asset | Under 9,512,842 bytes — 9,512,841 works, anything more does not |
| Static assets per deployed worker | Up to 1,000 |
What is an invocation?
An invocation is every time your worker code runs. It is what the dashboard calls a request. One page view is rarely one invocation: each API call, each image served through the Worker and each client-side fetch that reaches the server counts.
Reducing invocations is usually the cheapest optimisation, and it is often a build change rather than a logic change:
- Batch database work. Ask the agent to collapse several queries behind one request. Saving CPU matters less than saving invocations, so batching is worth it even when it does slightly more work per call.
- Inline JS and CSS at build time. Fewer separate asset requests means fewer trips through the Worker.
- Cache what does not change. A correct
Cache-Controlheader on static responses keeps repeat views off your quota. - Do not poll. A client timer that hits an endpoint every few seconds burns a day of invocations before lunch. Push events or fetch on interaction instead.
Always over the limits?
Copy this whole section into Freebuff and ask for help migrating — it is written to be usable as an instruction:
Because Freebuff Sites is just a Cloudflare Worker, you can migrate to Cloudflare Workers, which has much higher daily limits for free. Sign up for a Cloudflare account and ask the agent to migrate the site to your own account. File storage moves to Cloudflare R2, which requires a credit card on the Cloudflare account; without one, use an S3-compatible alternative, or redesign the feature to not need object storage.
The database cannot be dumped with Wrangler directly. It has to be exported through an
authenticated endpoint on a deployment of your worker, then imported into the new
database with Wrangler — and the _cf_KV table is unreadable in D1, so any
dump script must skip it. Files are the same story at a lower level: download them in the
sandbox and copy them across.
The full walkthrough is in taking your project elsewhere.