Author Topic: [MOD] Cache System for 4images v1.7  (Read 76969 times)

0 Members and 1 Guest are viewing this topic.

Offline ciprianmp

  • Newbie
  • *
  • Posts: 29
  • Php just rocks!
    • View Profile
    • My site
Re: [MOD] Cache System for 4images v1.7
« Reply #45 on: April 04, 2006, 12:48:18 AM »
 :wink:
For me, this is your code it finally worked!
Code: [Select]
find /home/cpanelusername/public_html/gallery/chache -maxdepth 1 -type f -daystart -ctime +1 -exec rm {} \; -print
Thank you V@no!

PS: any hints about documentation and SSH? (previous post)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cache System for 4images v1.7
« Reply #46 on: April 04, 2006, 01:03:53 AM »
Can you teach me please?
You are misstaken if you think I know alot about linux...I'm total lamer and know only what I had to do once, nothin beyond that.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline waleed

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #47 on: April 07, 2006, 02:44:44 AM »
would it be possible to empty the cache directory automaticly ?
without doing that from ACP ?  and without cronjon ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cache System for 4images v1.7
« Reply #48 on: April 07, 2006, 02:46:39 AM »
no
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: [MOD] Cache System for 4images v1.7
« Reply #49 on: April 15, 2006, 05:35:17 PM »
Installed this mod but something odd happens after a couple of tries.

my index page comes up blank. any ideas? Just a white page for the index.

Offline aletapety

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #50 on: June 06, 2006, 10:54:04 PM »
Hello

I have 1.7.2 when i set activate Mod Limit Category Per Page doesn't work  :? ,work only first page ,i see second page but when i click do ex. 2 or 3 i'm redirect to first  :cry:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cache System for 4images v1.7
« Reply #51 on: June 07, 2006, 01:20:30 AM »
I hope you didnt install this mod on v1.7.2....this mod is only for v1.7 and v1.7.2 already comes with cache system build-in. If you have problem with build-in cache system, then start a new topic in troubleshooting section.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline aletapety

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #52 on: June 07, 2006, 01:27:39 AM »
I hope you didnt install this mod on v1.7.2....this mod is only for v1.7 and v1.7.2 already comes with cache system build-in. If you have problem with build-in cache system, then start a new topic in troubleshooting section.

I now is already comes but this topic is for Cache  :wink: , ok new topic http://www.4homepages.de/forum/index.php?topic=13251.new#new

Offline Naveen

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #53 on: July 02, 2006, 03:25:57 PM »
Thankyou for this Mod V@no, You have been great as ever :)

I was able to bring down my server load from 90% to 0.90%

Thank you  :mrgreen:

Offline tradenet

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #54 on: July 02, 2006, 09:27:18 PM »
It appears Firefox browser doesn't like it with Gzip compression enabled.
You have to disable compression for it to work in your settings.
IE doesn't seem to have an issue with this.


Installed this mod but something odd happens after a couple of tries.

my index page comes up blank. any ideas? Just a white page for the index.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cache System for 4images v1.7
« Reply #55 on: July 02, 2006, 10:06:42 PM »
FF and any other modern browser have no issues with Gzip compression, unless the Gzip compressed page is corrupted (i.e. it has some non-compressed data before or after compressed data)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline tradenet

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #56 on: July 03, 2006, 01:34:13 AM »
Interesting.  8O
When I disable this mod it works fine with compression. When I enable this MOD I get the "blank page" in FF. I disable compression it works fine. IE has no issues either way.


FF and any other modern browser have no issues with Gzip compression, unless the Gzip compressed page is corrupted (i.e. it has some non-compressed data before or after compressed data)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cache System for 4images v1.7
« Reply #57 on: July 03, 2006, 02:23:49 AM »
as I said, different browsers handle differently corrupted pages...so, basicaly what I'm trying to say, is that your gallery most probably produces corrupted gzip compressed data...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline tradenet

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #58 on: July 03, 2006, 02:31:24 AM »
What I'm saying is without this MOD in place Gzip enabled compression works fine across all browsers.
However, when I install this MOD it doesn't.  :?

as I said, different browsers handle differently corrupted pages...so, basicaly what I'm trying to say, is that your gallery most probably produces corrupted gzip compressed data...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Cache System for 4images v1.7
« Reply #59 on: July 03, 2006, 03:21:56 AM »
can I test it?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)