Welcome! Log In Create A New Profile


Caching objects served from PHP

August 10, 2011 10:29AM
I have a server set up with nginx and PHP-FPM, running a framework that essentially sends all requests for content to PHP, which then serves it based on ACL rules. This includes images and other static content.

What I am trying to figure out is how I can get nginx to cache such objects to avoid the call to PHP for identical data, ie. a static image that hasn't changed.

Since all these calls are essentially dynamic, and often the image objects won't have easily identifiable extensions, I'm not sure how I might go about caching them.

I could put Varnish in front of nginx and have it do the caching but that would not allow caching of HTTPS traffic.

Suggestions welcome!
Subject Author Posted

Caching objects served from PHP

jwilson August 10, 2011 10:29AM

Re: Caching objects served from PHP

Akins, Brian August 10, 2011 01:40PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready