Tool settings
Turn WordPress debug mode, password protection, Set-Cookie stripping, and ionCube on or off, clear the server cache, restart PHP, and preview a site.
The Tools tab holds the switches and actions you reach for when something needs a quick fix: debug mode, password protection, cache clearing, a PHP restart, and a site preview on the temporary domain. Open the site, then Tools.
Open it
- Open a site and pick the environment in the top bar.
- Choose Tools.
Every change on this tab runs as a job, and the dashboard shows the progress.
Switch a setting on or off
Four settings are switches:
- WordPress debug mode: turn WordPress debugging on while you track down a problem, and off again when you are done.
- Password protection: ask visitors for a password before they can see the site.
- Strip Set-Cookie: Avaloi never caches a response that sets a cookie. If a plugin sets a cookie on every page and you want those pages cached, turn this on to strip the Set-Cookie header from cached responses. See Edge cache and CDN.
- ionCube Loader: turn on the loader when a plugin or theme is encoded with ionCube and needs it.
Flip the switch and save. Each change is one job.
Clear the server cache
Clear the server cache after a change that did not show up on the site. The action runs as a job. You can also clear it from a site's row in the Sites list, or on many sites at once.
To clear the edge cache and the server cache together, use Clear cache on the Caching tab.
Restart PHP
Restart PHP when the site hangs or a PHP setting needs a fresh start. The restart runs as a job. The Sites list row menu has the same action.
Site preview
Site preview shows the site on its temporary domain, so you can check it before a domain points at it. Turn it on from the Tools tab and pick how long it stays on, from one hour to seven days. Preview turns itself off after that time.
While preview is on, every response carries x-avaloi-preview: active, and search engines are told not to index the preview. The Caching tab's edge settings also show whether preview is on.
Limits
- Site preview stays on for one hour to seven days, then turns itself off.
Quick answers
I turned on debug mode. Where do the errors go?
Read error.log on the Logs tab.
Clearing the cache did not change the page I see. The edge cache may still hold it. Use Clear cache on the Caching tab to purge both, or purge the one URL.
Why would I strip Set-Cookie? A page that sets a cookie is never cached. Stripping the header lets Avaloi cache those pages. Leave it off if the cookie matters to your visitors.
How do I know a preview is on?
Responses carry x-avaloi-preview: active, and the edge settings on the Caching tab show preview as on.
API
PATCH /v1/environments/{id}/tools/settingsPOST /v1/environments/{id}/tools/cache/clearPOST /v1/environments/{id}/tools/php/restartPUT /v1/environments/{id}/tools/site-previewGET /v1/environments/{id}/edge/settings
Related
Still stuck?
Email [email protected] with your site name and what you tried, or send us a message.