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

Cache idea using AJAX

 
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 -> Feature Requests
View previous topic :: View next topic  
Author Message
rr1024
Smarty Rookie


Joined: 01 Aug 2006
Posts: 7

PostPosted: Wed Dec 27, 2006 6:18 pm    Post subject: Cache idea using AJAX Reply with quote

I've only done some reading about the smarty cache functionality and I can say I don't fully understand it yet, probably because I'm new to some of the terms being tossed around.

But I was thinking the whole problem with cache and PHP scripts in general is the dynamic content that has changed verses the dynamic content that Has NOT changed and how you implement this using smarty seems fairly complex?

Could it be possible to use AJAX for small snips of dynamic contact that always changes. Could smarty use say an AJAX plugin to do small dynamic content changes to a cached page?

Let's say I'm writing a script that requires everyone who visits a page to see if the users page who's being visited is Online, i.e. logged in to the script, this is seen quite often in scripts i.e. Online or Offline Member.

I'm just using this as an example:
No mater how Online Offline is handled it's fairly intensive for the server. Either using a dbquery, or a cron job it doesn't matter it's still a fairly heafty load when add it to all the other things your script does, because it's done every single time. It is also the piece of the page which needs to remain dynamic of course.

It seems AJAX plugin if it could be made to work with smarty can help resolve minor dynamic content changes like that above and even more by identifing dynamic content in your script which tells smarty to use AJAX to display dynamic parts.
Back to top
View user's profile Send private message Visit poster's website
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 -> Feature Requests All times are GMT
Page 1 of 1

 
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