Welcome! Log In Create A New Profile

Advanced

php and cache issue (proxy_cache conf)

Posted by eugenioclrc 
php and cache issue (proxy_cache conf)
September 06, 2011 02:25PM
Hi to everyone, i am a newbie with nginx, i am very happy with the nginx speed.

Right now im working on a heavy app written in php.

The app knows what pages to cache a cron job delete the old cache pages, the cache is saved doing a md5 to the url to get a hash, then puts a / every 2 chars, example;

/index.php
hash: d1546d731a9f30cc80127d57142a482b
cache file: /d1/54/6d/73/1a/9f/30/cc/80/12/7d/57/14/2a/48/2b/index.html

The php script check if exist a cache file, if cache file exist render.

The question is, is anyway to do this with nginx??

Thanks for your time
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready