Author |
Message |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Thu Nov 11, 2004 6:43 am |
|
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. |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Thu Nov 11, 2004 7:01 am |
|
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 |
|
|
 |
sharlein
Member Emeritus

Joined: Nov 19, 2002
Posts: 322
Location: On the Road
|
Posted:
Thu Nov 11, 2004 9:03 am |
|
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 Secondly, how is the time measured? 3600 = 1 hour? Thanks again. Steve |
_________________ Give Me Ambiguity Or Give Me Something Else! |
|
|
 |
Guardian2003

|
Posted:
Thu Nov 11, 2004 12:12 pm |
|
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
|
Posted:
Thu Nov 11, 2004 12:30 pm |
|
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 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! |
|
|
|
 |
Mandala
New Member


Joined: Jun 01, 2004
Posts: 18
|
Posted:
Thu Nov 11, 2004 1:48 pm |
|
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+.....' |
|
|
|
 |
Raven

|
Posted:
Thu Nov 11, 2004 4:29 pm |
|
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. |
|
|
|
 |
|