Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Making Nuke Efficient
Author Message
Dove
New Member
New Member



Joined: Jun 29, 2004
Posts: 11
Location: USA

PostPosted: Thu Aug 11, 2005 1:22 pm Reply with quote

Hello Everyone!!

I recently helped someone with a phpbb forum update,
and noticed they include an option to cache the template
system (by 1 of 2 ways -> file or db).

Has anyone tried this?

What I did was take the phpbb 2.0.17 template_file_cache.php
(for file caching), add:
Code:
if (!defined('IN_PHPBB')) {

        die();
}

to the top of it. Rename it to template.php and put it in
my includes folder (replaced my original). Then the instructions said to make a cache folder in my forums directory (named cache & chmod 777). The download included a .htaccess & blank index.html file
to place in this cache directory also. Instead though, I used cpanel to
password protect this directory instead (which made it's own .htaccess).

Now when I click on a forum link or login Nuke's admin, and go
to forums, it caches my .tpl files, and they are for the correct theme
as well (there are .tpl files in the cache folder).

I'd really like to move the cache folder outside the public_html.

Is this justified? I really can't tell if it made or makes
an increase. Is this old news and everyone has been using it?

Thanks -
DoVe
 
View user's profile Send private message
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Thu Aug 11, 2005 9:38 pm Reply with quote

You need to leave the cache inside public_html as that is what is feeding to users. If it were outside the public_html, nobody would be able to see anything and it wouldn't work.

When you are on a high-speed connection, it is extremely hard to tell if there are performance increases; however, dialup users could tell you for sure. Smile

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
Dove







PostPosted: Sun Aug 14, 2005 1:32 pm Reply with quote

ok thanks
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Making Nuke Efficient

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 ©