Platform
What is Edge Cache?
9 min
bionicwp offers edge cache as a free performance feature across all plans this feature utilizes our global network of edge servers to deliver cached pages and static assets for your wordpress sites benefits of edge cache edge cache provides performance improvements, especially in terms of your siteās time to first byte (ttfb), by serving page cache directly from the closest server available to a siteās visitors this cache is served from bionicwpās four origin datacenters, and over 24 edge datacenters, giving sites a total of 28 point of presence (pop) locations that are continuously expanding improved performance edge cache enhances your siteās performance by reducing the distance that requests have to travel it serves page cache directly from the nearest server to your siteās visitors, resulting in faster page load times and improved time to first byte (ttfb) this improved performance enhances user experience, reduces bounce rates, and positively impacts your siteās core web vitals reduced resource utilization by caching requests on our edge servers, edge cache decreases the load on your siteās origin server this reduction in requests to the origin server improves overall performance and reduces resource consumption increased availability edge cache ensures the availability of your site through graceful failover even if your site encounters issues, requests can still be served from the edge servers this guarantees that your site remains accessible to users, even during situations like plugin and theme conflicts compatibility similar to batcache, edge cache is compatible with dynamic requests that adhere to wordpressā best practices it ensures that cached pages are not served when an uncached response is required this compatibility extends to popular ecommerce solutions like woocommerce, guaranteeing that checkout flows and cart requests are not cached itās important to note that traffic directed to a siteās edge cache is not currently logged in the standard web server logs enabling and disabling edge cache navigate to https //my bionicwp com/ go to "sites" select the site you want to enable cache for click this checkbox to enable to disable 'edge cache' purging / flushing edge cache navigate to the āedge cacheā section under āsite detailsā and click "purge edge cache" clicking the purge edge cache will clear the current cache from our edge servers note that performance will be affected while cache rebuilds and it is recommended to use this tool sparingly checking the status of edge cache once edge cache is enabled, it requires some time and multiple site visits for the cache to be built and served from the edge servers to monitor the status of edge cache, you can check for the x ac response header using your browserās developer tools, or the shell command curl li https //your example domain/, and other methods itās important to note that if you are currently logged into the backend (wp admin) of your site, both batcache and edge cache will be disabled for your web browserās session here are a few examples of these headers x ac 3 vie atomic dca hit x ac 2 den atomic dfw bypass x ac 1 ewr atomic dca miss the value of the x ac header can be hit, expired, updating, miss, or bypass hit the page was served from edge cache expired response found in the cache but has passed the cache ttl the response is returned then the item is removed from the cache updating a request is currently updating the cached asset from the siteās origin server via a held lock to prevent multiple āmissesā for the same request miss there was not an edge cache hit this may be due to something disabling or preventing batcache from working or, the page may not have had enough recent visits to populate the cache on the specific edge server the visitor connected to bypass edge cache is not enabled if the x ac headerās value is hit , expired , updating , or miss , this indicates that edge cache is enabled if the header shows bypass , this means that edge cache is disabled common caching issues any configurations or issues that disable or disrupt batcache will similarly impact edge cache functionality itās important to be aware that if you are logged into the backend (wp admin) of your site, both batcache and edge cache will be disabled for your web browserās session here are some examples of configurations or issues that can prevent optimal caching or potentially break caching entirely cookies certain plugins may attempt to set cookies on each page load, especially those that leverage server side cookies this will prevent batcache and edge cache from storing and serving cache phpsessid server side cookie aka the āsession cookieā, leverages php to store session ids on the server side initiated via the session start() function other set cookie implementations that attempt to set a cookie on every request initiated via the setcookie() function custom cache headers plugins and custom code may attempt to modify cache response headers the following examples, when set, will prevent caching pragma no cache cache control no cache cache control max age=0 other functions & snippets the following are additional examples of code that can prevent batcache and edge cache from working as expected batcache cancel() $batcache \>max age = 0; $batcache\[\'max age\'] = 0; session start() nocache nocache headers() x cache wp cache flush()
