Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

compressed caching and serving compressed content
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
cyber
Smarty Regular


Joined: 08 Jun 2006
Posts: 51

PostPosted: Sun Jul 26, 2015 7:06 am    Post subject: Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sun Jul 26, 2015 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Jul 27, 2015 6:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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
Protected by Anti-Spam ACP