PHP Caching

Caching dynamically generated PHP files can increase site speed by saving the result in a static file and serving it in subsequent requests. PHP pages are cached by the unique URI associated with each page.

With caching enabled, dynamically generated PHP pages are cached at the edge and served as static files. Caching makes applications significantly faster by reducing the amount of time and resources it takes to render a page.

To instruct Amezmo to cache your dynamically generated PHP pages, ensure the following requirements for each page you want to cache.

Caching requirements

It is important that sensitive pages such as admin portals and password reset forms are not cached. By default POST requests are never cached.

Important: If you're using a PHP framework such as Laravel, or Yii, then cookies may be automatically added to your HTTP responses. You must disable this functionality before PHP caching will work. To disable cookies, see the documentation for your framework.

Helpful information

Use cases

See also