|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
cyber Smarty Regular
Joined: 08 Jun 2006 Posts: 51
|
Posted: Sun Jul 26, 2015 7:06 am Post subject: |
|
|
U.Tews wrote: | I see the following possibility: |
Thanks for the confirmation
U.Tews wrote: | If your template does contain nocache code the output filter does not run when cache file is created, but when the page is displayed. |
Right ... I have been thinking about this as well.
Most of my content is cached but there are a few pages for which I have turned caching off, because the content is semi-dynamic.
These pages would then have to be compressed each time (in this case letting Apache do it, is the most effective again, but you can't mix and match, so php code would need to do it)
All and all it's becoming a complex undertaken to win some performance (maybe). |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Jul 26, 2015 11:20 am Post subject: |
|
|
AnrDaemon wrote: | PHP already does that. |
Yes, PHP can do it. But it will be done on each page request. So compressing it once should have some better performance.
And stop posting your sometimes arrogant and smart-alecky answers. It's not good for the quality of the forum. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Jul 27, 2015 6:24 pm Post subject: |
|
|
If you are concerned with website performance on THIS level, there's a load of reverse proxy solutions that will serve compressed content at nearly no overhead from web server side, completely excluding PHP from the equation.
Yet again, the OP came from at least ten years old article and refused to understand the answers given, nor he did any research at all on his own part. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|