Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86756 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79689 invoked from network); 19 Jun 2015 12:43:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jun 2015 12:43:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 93.190.64.239 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 93.190.64.239 mail-99.de-punkt.de Received: from [93.190.64.239] ([93.190.64.239:33076] helo=mail-99.de-punkt.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/40-11390-06E04855 for ; Fri, 19 Jun 2015 08:43:13 -0400 Received: from localhost (localhost [127.0.0.1]) by mail-99.de-punkt.de (Postfix) with ESMTP id 3D1233A44D for ; Fri, 19 Jun 2015 14:43:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at MYHOSTNAME Received: from mail-99.de-punkt.de ([127.0.0.1]) by localhost (mail-99.de-punkt.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fzmWSbQJr7qj for ; Fri, 19 Jun 2015 14:43:09 +0200 (CEST) Received: from [192.168.178.24] (p57BDE820.dip0.t-ipconnect.de [87.189.232.32]) (Authenticated sender: php@sebastian-bergmann.de) by mail-99.de-punkt.de (Postfix) with ESMTPSA id D5DBA3A154 for ; Fri, 19 Jun 2015 14:43:08 +0200 (CEST) Message-ID: <55840E5D.1090809@php.net> Date: Fri, 19 Jun 2015 14:43:09 +0200 Reply-To: internals@lists.php.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: PHP-FPM: How to clear the realpath cache on deployment? From: sebastian@php.net (Sebastian Bergmann) Scenario: nginx + PHP-FPM / FastCGI. The final step of the deployment is updating a symlink to point to the new version. For N <= realpath_cache_ttl seconds after the deployment, some filesystem operations fail because of outdated realpath cache entries. Is there a way to signal the PHP-FPM / FastCGI processes to clear the realpath cache? If not, I think this should be added :-) Thanks! Sebastian