Topics: Caching

Questions about Swift’s caching section.

You are here:

Swift is flooding my hosting/server storage space and my cache size is growing rapidly

Nov, 11 1018
The average size of a cached page should be about 200-400Kb. That means if you have 1.000 pages the normal cache size will be about 200-400 Mb. This usually happens if there are a very large number of pages or if there is a dynamic part in JS or CSS - some themes/plugins creates dynamic js an...

What does mean: “Prebuild cache stopped due to an error (503)”?

Sep, 9 52
The site ran out of allocated resources. Troubleshooting steps: First of all we suggest to exclude post types that you wouldn’t like to cache. Autoconfig should find most and exclude them automatically but you also can add manually. Also if you enable optimization features it will use more C...

Should Swift be caching wp-cron.php?

Nov, 11 130
WP-cron.php shouldn’t be cached and it won’t be cached by default.

Strange redirects

Jan, 1 714
If you have strange URLs in your analytics or you can see that the site redirects to an URL like this: This is probably caused by an improper order of htaccess rules. Probably you are using a force SSL or f...

Disk Cache with rewrites or Disk Cache with PHP?

Oct, 10 225
Disk Cache with rewrites should be always the fastest solution especially in the age of fast SSD. But if you have slow hard drive, than storing in php/database or memory (object cache) is faster.

ABC shows up in the warmup table instead of a green checkbox

Feb, 2 52
Striked ABC, it means the page is not cacheable. It can happen if the first visit is not a normal GET request (eg. HEAD) and no content was rendered, or if it was excluded somehow in cache settings.

How can we get Swift to force http requests to https?

Sep, 9 70
You should setup and double check HTTPS before you install Swift. If your .htaccess has any redirect rules, they need to be removed and placed in Swift. On Apache you can also add force SSL rules in: Settings > General > Tweaks > Custom htaccess.

This is what happened to my site after using Swift: ��=�r�8�Ҍ�oE�

Apr, 4 110
This is usually caused by double gzipped.  Typically, it indicates there is a deflate rule in your htaccess. Please remove it, and let Swift do it: Settings > Caching > General > Enable Gzip. If you enable this option, it will generate .htacess/nginx rules for gzip compression. If you are ...

What does the “redirect” status of the warm-up table mean?

Sep, 9 32
Redirect status means, when the prebuild crawler hit the page it get a HTTP redirect. It can happen if you have custom redirect rules, or your site is running on HTTPS, but in WordPress settings the site url is using http://.

I was looking in the WP-content/cache/Swift directory, and I see subdirectories for suspicious sounding things

Sep, 9 42
If you see something like and, it is a server configuration issue, but you shouldn’t be really concerned. It means if someone send a request to your server with a different host it will still load WordPress. To prevent this, you can set explicitly in server config which pages...