Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Cache Lite Admin Module
Author Message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Thu Nov 11, 2004 6:43 am Reply with quote

OK, So I guess the idea of this script is to cache blocks so the overall page load time is decreased.

Would it be possible to perhaps extend this caching feature to a folder?
I'm thinking of the benefits that might be gained from caching the /images folder in particular.
 
View user's profile Send private message Send e-mail
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Thu Nov 11, 2004 7:01 am Reply with quote

Images aren't good candidates for caching since they are static and already compressed there isn't much more we can do for them in this way.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
sharlein
Member Emeritus



Joined: Nov 19, 2002
Posts: 322
Location: On the Road

PostPosted: Thu Nov 11, 2004 9:03 am Reply with quote

Everything went smoothly and I put one of my blocks (with the changed require line) back into the cache. Very nice job, thank you. First, a comment - I received an sql error because the table already existed. I fixed that by deleting the table Bang Head Secondly, how is the time measured? 3600 = 1 hour? Thanks again. Steve

_________________
Give Me Ambiguity Or Give Me Something Else! 
View user's profile Send private message
Guardian2003







PostPosted: Thu Nov 11, 2004 12:12 pm Reply with quote

Thanks for the comment six.
It is rather a shame because my own site uses some pretty heavy graphics in articles etc. Perhaps the time is right for me to revisit those graphics and look to where load times might be saved by further reducing the file size.

This thread has certainly given me food for thought and I'll definitely try out the cache mod - thanks!
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Nov 11, 2004 12:30 pm Reply with quote

sharlein wrote:
Everything went smoothly and I put one of my blocks (with the changed require line) back into the cache. Very nice job, thank you. First, a comment - I received an sql error because the table already existed. I fixed that by deleting the table Bang Head Secondly, how is the time measured? 3600 = 1 hour? Thanks again. Steve
You didn't need to replace the SQL. You erased your settings that way. I'll make sure to clarify that in the next release.

Yes, the time is in seconds. Thanks for the feedback!
 
View user's profile Send private message
Mandala
New Member
New Member



Joined: Jun 01, 2004
Posts: 18

PostPosted: Thu Nov 11, 2004 1:48 pm Reply with quote

Checked for me with the Sun Solaris version of the ioncube lib
Everything is fine with the modif.

Perhaps some ideas for the future ?

1. Caching the module ? (Cache Lite can do it)

2. If the block is cached, writting a last line in the content with for exemple : [Cached 3600] that is displayed with the block (just a line in your fonction with 'content=content+.....'
 
View user's profile Send private message
Raven







PostPosted: Thu Nov 11, 2004 4:29 pm Reply with quote

Mandala wrote:
Checked for me with the Sun Solaris version of the ioncube lib
Everything is fine with the modif.

Perhaps some ideas for the future ?

1. Caching the module ? (Cache Lite can do it)

2. If the block is cached, writting a last line in the content with for exemple : [Cached 3600] that is displayed with the block (just a line in your fonction with 'content=content+.....'
#1. Not as easy as it sounds. Blocks are easy because all the output is stored in a variable before displaying. Blocks vary in complexity and the manner in which the display is handled. I have been experimenting though.

#2. Should be no problem.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Cache Lite Admin Module

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©