Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Cherokee caching PHP pages and I can't clear cache

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


bradezone at gmail

Feb 3, 2012, 1:50 PM

Post #1 of 7 (907 views)
Permalink
Cherokee caching PHP pages and I can't clear cache

I do a google for "cherokee clear cache" and nothing shows up, which seems to
be a problem. There should be a button in the admin somewhere to do this :/
Basically I have my ".php" extension rule set to never cache content, yet
somehow it's not working. I am developing a CakePHP app, and when I develop
on local or deploy to test server (both Apache) my updates are reflected.
But whenever I deploy to the live Cherokee server, the updates don't seem to
happen. The cache seems very mysterious w/ Cherokee -- even restarting
php-fpm doesn't resolve it.
Does anyone know what the dealio could be?

--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/Cherokee-caching-PHP-pages-and-I-can-t-clear-cache-tp5455136p5455136.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


lists at dan

Feb 3, 2012, 1:55 PM

Post #2 of 7 (878 views)
Permalink
Re: Cherokee caching PHP pages and I can't clear cache [In reply to]

The cache is in Cherokee, so restarting php-fpm won't clear it. Try
restarting Cherokee itself.

I assume it's the "Front line cache" that's doing this caching. I've never
used it so I'm not sure how to clear it.

On Sat, Feb 4, 2012 at 8:50 AM, Brade <bradezone [at] gmail> wrote:

> I do a google for "cherokee clear cache" and nothing shows up, which seems
> to
> be a problem. There should be a button in the admin somewhere to do this :/
> Basically I have my ".php" extension rule set to never cache content, yet
> somehow it's not working. I am developing a CakePHP app, and when I develop
> on local or deploy to test server (both Apache) my updates are reflected.
> But whenever I deploy to the live Cherokee server, the updates don't seem
> to
> happen. The cache seems very mysterious w/ Cherokee -- even restarting
> php-fpm doesn't resolve it.
> Does anyone know what the dealio could be?
>
> --
> View this message in context:
> http://cherokee-web-server-general.1049476.n5.nabble.com/Cherokee-caching-PHP-pages-and-I-can-t-clear-cache-tp5455136p5455136.html
> Sent from the Cherokee Web Server - General mailing list archive at
> Nabble.com.
> _______________________________________________
> Cherokee mailing list
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee
>


alvaro at alobbs

Feb 4, 2012, 1:54 PM

Post #3 of 7 (856 views)
Permalink
Re: Cherokee caching PHP pages and I can't clear cache [In reply to]

On 02/03/2012 10:50 PM, Brade wrote:
> I do a google for "cherokee clear cache" and nothing shows up, which seems to
> be a problem. There should be a button in the admin somewhere to do this :/
> Basically I have my ".php" extension rule set to never cache content, yet
> somehow it's not working. I am developing a CakePHP app, and when I develop
> on local or deploy to test server (both Apache) my updates are reflected.
> But whenever I deploy to the live Cherokee server, the updates don't seem to
> happen. The cache seems very mysterious w/ Cherokee -- even restarting
> php-fpm doesn't resolve it.
> Does anyone know what the dealio could be?

Adding cacheability headers (Cache-Control) to the responses generated
by your application would be enough. Alternatively, you could disable
Front-Line Cache for PHP, but that'd be just a workaround.
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


bradezone at gmail

Feb 7, 2012, 1:52 PM

Post #4 of 7 (850 views)
Permalink
Re: Cherokee caching PHP pages and I can't clear cache [In reply to]

Thanks, I have expressly forbid caching and set expires to the past for my
.php files, and I'll see if that gets the job done.

--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/Cherokee-caching-PHP-pages-and-I-can-t-clear-cache-tp5455136p5464741.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


bradezone at gmail

Feb 15, 2012, 7:22 AM

Post #5 of 7 (828 views)
Permalink
Re: Cherokee caching PHP pages and I can't clear cache [In reply to]

Sadly this doesn't quite seem to be working. The issue is that I've developed
a CakePHP app, and so I'm worried that even though the "main" index.php file
(which handles incoming requests) is able not to be cached, the controller
file(s) that it includes seemingly are. Is there a solution for this? I have
not had this trouble w/ apache systems, so it's very annoying, especially if
a site has an obvious bug, I deploy the fixes, and yet the problem remains.

--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/Cherokee-caching-PHP-pages-and-I-can-t-clear-cache-tp5455136p5486361.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


lists at dan

Feb 15, 2012, 4:51 PM

Post #6 of 7 (825 views)
Permalink
Re: Cherokee caching PHP pages and I can't clear cache [In reply to]

That wouldn't be Cherokee doing that. Cherokee just sends the request to
PHP, which processes it. If your responses are not cached but the included
controller files are, that'd be a PHP issue, not a Cherokee issue. It's
PHP's FastCGI process controlling this, so you'd see the same behaviour
with any other server that uses PHP via FastCGI (like nginx or Lighttpd).

Are you using APC? If so, check that the "apc.stat" setting is not set to 0
in php.ini.

On Thu, Feb 16, 2012 at 2:22 AM, Brade <bradezone [at] gmail> wrote:

> Sadly this doesn't quite seem to be working. The issue is that I've
> developed
> a CakePHP app, and so I'm worried that even though the "main" index.php
> file
> (which handles incoming requests) is able not to be cached, the controller
> file(s) that it includes seemingly are. Is there a solution for this? I
> have
> not had this trouble w/ apache systems, so it's very annoying, especially
> if
> a site has an obvious bug, I deploy the fixes, and yet the problem remains.
>
> --
> View this message in context:
> http://cherokee-web-server-general.1049476.n5.nabble.com/Cherokee-caching-PHP-pages-and-I-can-t-clear-cache-tp5455136p5486361.html
> Sent from the Cherokee Web Server - General mailing list archive at
> Nabble.com.
> _______________________________________________
> Cherokee mailing list
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee
>


bradezone at gmail

Feb 16, 2012, 7:52 AM

Post #7 of 7 (828 views)
Permalink
Re: Cherokee caching PHP pages and I can't clear cache [In reply to]

Gotcha. I guess there's a slight chance it was due to a CakePHP setting. I'll recheck.
I just hate any caching method where I can't either do a shift+reload or a restart of php-fpm or the webserver to refresh the data.
Caching should never be embedded that "deep" IMO.

--brad g.

* * * * * * * * * * * * * * * *
Visit www.bradezone.com today and be a part of history! Technically!


On Feb 15, 2012, at 7:51 PM, Daniel Lo Nigro-2 [via Cherokee Web Server - General] wrote:

> That wouldn't be Cherokee doing that. Cherokee just sends the request to PHP, which processes it. If your responses are not cached but the included controller files are, that'd be a PHP issue, not a Cherokee issue. It's PHP's FastCGI process controlling this, so you'd see the same behaviour with any other server that uses PHP via FastCGI (like nginx or Lighttpd).
>
> Are you using APC? If so, check that the "apc.stat" setting is not set to 0 in php.ini.
>
> On Thu, Feb 16, 2012 at 2:22 AM, Brade <[hidden email]> wrote:
> Sadly this doesn't quite seem to be working. The issue is that I've developed
> a CakePHP app, and so I'm worried that even though the "main" index.php file
> (which handles incoming requests) is able not to be cached, the controller
> file(s) that it includes seemingly are. Is there a solution for this? I have
> not had this trouble w/ apache systems, so it's very annoying, especially if
> a site has an obvious bug, I deploy the fixes, and yet the problem remains.
>
> --
> View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/Cherokee-caching-PHP-pages-and-I-can-t-clear-cache-tp5455136p5486361.html
> Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
> _______________________________________________
> Cherokee mailing list
> [hidden email]
> http://lists.octality.com/listinfo/cherokee
>
>
> _______________________________________________
> Cherokee mailing list
> [hidden email]
> http://lists.octality.com/listinfo/cherokee
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://cherokee-web-server-general.1049476.n5.nabble.com/Cherokee-caching-PHP-pages-and-I-can-t-clear-cache-tp5455136p5488050.html
> To unsubscribe from Cherokee caching PHP pages and I can't clear cache, click here.
> NAML



-----
Visit Bradezone today and be a part of history! Technically!
--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/Cherokee-caching-PHP-pages-and-I-can-t-clear-cache-tp5455136p5489871.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.