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

0 Members and 1 Guest are viewing this topic.

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 #15 on: August 17, 2005, 01:14:29 AM »
well, see, v1.7.1 is not only optimized with session handlers, it also has new template engine, and the entire code was little bit tweaked and optimized.
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 mentally

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #16 on: August 17, 2005, 02:07:33 AM »
is there a drastic speed difference after installing this mod?  :?:

Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #17 on: August 17, 2005, 07:34:39 PM »
i tested this MOD on 1.7ver. with 7000 IP per day, nothing good..

+50% speed after you install 1.7.1 only.

Offline Hein

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #18 on: August 28, 2005, 09:31:29 PM »
Dear All,

is it normal, that the cache files have 0 Byte?

The files are saved by me in folder "cache" but they have all 0 Byte...

The gallery is also not really quicklier.

I have already check all my steps and can´t find a mistake...

Sorry for my bad english and thanks for your help.

André

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Cache System for 4images v1.7
« Reply #19 on: October 22, 2005, 10:24:55 AM »
Hi there,

is there a way to ignore the user_loginform.html from the cache???

It where better for the PM Mod....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #20 on: November 08, 2005, 05:33:52 PM »
sorry .. but what does this MOD do ?
what do you mean by Cache system for 4images

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Cache System for 4images v1.7
« Reply #21 on: November 08, 2005, 06:04:06 PM »
do you have 4images 1.71?
then you don´t need this Mod... (o:

Read the Cache.english.txt in the Docs Folder...

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #22 on: November 08, 2005, 06:10:48 PM »
No I don't .. I have v1.7 only ..
and can't change it coz I have lots of changes inside it like MODs ..

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] Cache System for 4images v1.7
« Reply #23 on: November 08, 2005, 06:14:31 PM »
And you don´t now caching?  8O

Taken from the Cache.english.txt
Quote
The caching system saves results generated by the
  script as static html files to the disk.
  The next time a visitor requests a page, the result can be
  fetched from the cache and must not be generated again.

  This also has some "disadvantages": Dynamic data such as
  hits, ratings, random images and the "who's online" list
  will also be cached. This dynamic data never changes
  until a cache file is invalidated and generated again.

Offline Nasser

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Re: [MOD] Cache System for 4images v1.7
« Reply #24 on: November 09, 2005, 07:18:49 PM »
I don't untill you've told me :D
thanks for your reply
I am caching now ;)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Cache System for 4images v1.7
« Reply #25 on: January 06, 2006, 12:34:35 AM »
After re-do the step 1 i have this problem on my site. With the old cache_utils.php i have not this problem...




*EDIT*

and now i have see i can´t log in and logout....i have upload the old cache_utils.php
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

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 #26 on: January 06, 2006, 01:31:52 AM »
As I mentioned before, I dont think this problem is related directly to this mod. Try to uninstall this mod (at least undo Step 1, 2 and 3 - asuming you see this problem on index.php, if not undo the changes in the file where the problem is)

Second, I see no such problem on your site neither in IE nor in FF.
But, I've noticed another thing that only showed in FF: there are some characters showed on top of each page. . I've experienced such myself in the past, and it turned out caused by my php editor that saved files in Unicode (UTF-8) encoding and added "BOM" identifications at the beginning of each file. Normaly any editor that supports Unicode/UTF8 does not show these characters, but PHP seems to treat them as a plane text and send them to the browser as plain text.

So, make sure you save your files in 8-bit ecoding (ISO) and not in unicode.

P.S. if you copy text from a web page that uses Unicode or UTF-8 and then paste it into notepad/wordpad and save it, it will save the file in Unicode or UTF-8 encoding.
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Cache System for 4images v1.7
« Reply #27 on: January 06, 2006, 01:43:10 AM »
Hi,

you have not seen the Problem while i have upload the old cache_utils.php.

For you i upload the new with the problems. Please look again and see the german version of the site.....

Quote
P.S. if you copy text from a web page that uses Unicode or UTF-8 and then paste it into notepad/wordpad and save it, it will save the file in Unicode or UTF-8 encoding.

i use notepad for all the files.....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

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 #28 on: January 06, 2006, 02:05:28 AM »
i use notepad for all the files.....
Make sure you save files in ANSI encoding. But be carefull, you might endup with a space after each letter...

Your site is using ISO-8859-1 (Western European) encoding, yet, the text comming from the server is in Unicode with the BOM identification.

Try to use some more relible php editor (i.e. http://www.mpsoftware.dk/phpdesigner.php) ;)
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 JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] Cache System for 4images v1.7
« Reply #29 on: January 06, 2006, 02:26:16 AM »
hhmm, i don´t understand this. i have install the php editor what you say and i have open the index.php with it. i have save it and upload to my site. but no changes i can see.

i have test wordpad and the same.

i don´t understand this all....
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-