DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 09, 2010, 01:00:09 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Data Caching  (Read 1722 times)
0 Members and 1 Guest are viewing this topic.
Althalas
Guest
« on: April 26, 2005, 12:58:25 PM »

My server has bee running extreamly slow and I was wondering how I enable the data caching feature in v1.0.2?
« Last Edit: April 26, 2005, 12:59:56 PM by Althalas » Logged
Kendaer
Global Moderator
Mod God
*****
Offline Offline

Posts: 1806


Once a dragon, always a dragon


View Profile WWW
« Reply #1 on: April 28, 2005, 02:01:13 PM »

You need to do two things.
1) create a directory where the cache files will be stored.  This directory needs to be writeable by the web server since that is what the PHP script is running as.
2) go into the game settings and put the values in.
Logged

Ex co-developer of LotGD
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 258


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #2 on: April 29, 2005, 07:07:27 PM »

I must say that the data caching feature is fantastic..

Our hosting acct was nearly terminated due to excessive CPU usage on the host's servers...

The data caching has saved us from a very sticky end..

Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Eliwood
Member
Captain of the Guard
***
Offline Offline

Posts: 243


I'm Swiss


View Profile WWW
« Reply #3 on: April 29, 2005, 10:37:42 PM »

I have Problem with Datacaching:

Code:
Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\lotgd\lib\errorhandler.php on line 114

Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53

What i make false?

(I now, its very badly English Wink )
Logged

→ Yet another Green Dragon - just another green dragon clone completly (re)written in oop5 and utf8.
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 258


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #4 on: April 30, 2005, 12:21:08 AM »

* Lightbringer finds your error messages to be worse english than your comments...very scary error messages

I am thinking that it is an issue with a third party module or a file/directory permission issue...

Your best bet is to try deactivating any third-party (non-core) modules - taking note of which one (if any) causes the particular error...

Otherwise - just check file permissions
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Calliander
Guest
« Reply #5 on: April 30, 2005, 12:35:07 AM »

Otherwise - just check file permissions

Yeah, if fopen() is giving that error, it means it can't read or create a file by a specified name.
Logged
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 258


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #6 on: April 30, 2005, 12:47:59 AM »

I thought so..but I prefer to cover all bases..

Thank you, Calliander Smiley
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Eliwood
Member
Captain of the Guard
***
Offline Offline

Posts: 243


I'm Swiss


View Profile WWW
« Reply #7 on: April 30, 2005, 01:04:03 AM »

I am thinking that it is an issue with a third party module or a file/directory permission issue...

Your best bet is to try deactivating any third-party (non-core) modules - taking note of which one (if any) causes the particular error...

Otherwise - just check file permissions

The errors cames, when i had deaktiviate all non-core Modules too.....

File permissions, I think that i have all...
Its localhost and i think, that's the Problem...
Logged

→ Yet another Green Dragon - just another green dragon clone completly (re)written in oop5 and utf8.
Dannic
Guest
« Reply #8 on: April 30, 2005, 04:18:43 AM »

even localhost you need to make sure that you can write to the directory.  This is a directory write permissions error.
Logged
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 793


Wogga! Meep!


View Profile WWW
« Reply #9 on: April 30, 2005, 09:07:35 AM »

Try and chmod it to 606, or 777 if that fails. You can use some FTP programs for this, like Core FTP Lite. Not sure about the mail() function error messages, but we had them a while back.
Logged
Kendaer
Global Moderator
Mod God
*****
Offline Offline

Posts: 1806


Once a dragon, always a dragon


View Profile WWW
« Reply #10 on: May 02, 2005, 07:48:04 AM »

You did not follow my instructions.

FIRST; find a directory on your hard drive where you want to store to the cache files.
(the default in the code is /tmp which is a UNIX directory).

Given the error message you got first
Quote
Warning: fopen(/tmp/datacache_errornotify) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\lotgd\lib\datacache.php on line 53
You are on a windows machine.

Therefore, /tmp is the wrong location and you didn't follow my instructions to change it.

Please go back, read my last message and follow it.  If you cannot, then I cannot help you.
Logged

Ex co-developer of LotGD
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
25 Guests, 5 Users
Oak, Cory2, windsummoner, kickme, Iori
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search