Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Mick. on April 10, 2010, 09:22:06 AM

Title: Performance Warning
Post by: Mick. on April 10, 2010, 09:22:06 AM

Performance Warning
The cache directory is not writable - this will adversely affect the performance of your forum.

http://www.chevyavalancheclub.com/av_registry.php

I looked at Cache folder and is set to 755  ???
Title: Re: Performance Warning
Post by: Adish - (F.L.A.M.E.R) on April 10, 2010, 09:24:38 AM
Have you set it recursively ?

Did you try 777?
Title: Re: Performance Warning
Post by: Mick. on April 10, 2010, 09:28:23 AM
Quote from: (F.L.A.M.E.R) on April 10, 2010, 09:24:38 AM

Did you try 777?

Yes, same.
Title: Re: Performance Warning
Post by: Kays on April 10, 2010, 09:53:12 AM
That page loads fine for me.

Where are you seeing the error? In the error log?

Is it happening on all pages or just that one?
Title: Re: Performance Warning
Post by: Bigguy on April 10, 2010, 09:55:44 AM
Is the ownership for that folder wrong. ???
Title: Re: Performance Warning
Post by: Mick. on April 10, 2010, 09:56:43 AM
Quote from: Kays on April 10, 2010, 09:53:12 AM
That page loads fine for me.

Where are you seeing the error? In the error log?

Is it happening on all pages or just that one?

As admin, i can only see the pink warning box.  I dont see it in SMF itself, just that page created using header and footer codes.

I think it has something to do with my gallery....  vbgamer changed a performance setting for the forum yesterday for me but this morning i found this warning.

I contacted him and hoping we can figure it out.   Who knows, it may be unrelated.
Title: Re: Performance Warning
Post by: Kays on April 10, 2010, 10:25:00 AM
If it was working before and nothing else has changed. Then that is something to check. Can you temporarily disable it to verify?
Title: Re: Performance Warning
Post by: Mick. on April 10, 2010, 10:38:41 AM
Quote from: Kays on April 10, 2010, 10:25:00 AM
Can you temporarily disable it to verify?

How you do that?
Title: Re: Performance Warning
Post by: Mick. on April 10, 2010, 11:08:18 AM
Yep, i turned it off and it went away..

admin--->server--->caching


Is that good?   Its been like that for ages but vbgamer thought it would be better to the forum if turned on.

But if i turn it ON, the warning message appears.
Title: Re: Performance Warning
Post by: Kays on April 10, 2010, 11:22:14 AM
Actually, I was think of disabling the Gallery. :) Maybe comment out the code for it on that page.

But it's a good to know that disabling caching will clear the error. Have you tried clearing the cache?
Title: Re: Performance Warning
Post by: Mick. on April 10, 2010, 11:40:19 AM
Quote from: Kays on April 10, 2010, 11:22:14 AM
Actually, I was think of disabling the Gallery. :) Maybe comment out the code for it on that page.

But it's a good to know that disabling caching will clear the error. Have you tried clearing the cache?

Yep.

It appears in level 1 and 2.  It goes away when OFF.

Quite frankly i dont know what setting it should be.  All this time was OFF.
Title: Re: Performance Warning
Post by: vbgamer45 on April 10, 2010, 11:59:48 AM
Where is that error coming from is that from a mod or SMF?

I love caching just because it makes the site performance a lot better.
Title: Re: Performance Warning
Post by: Mick. on April 10, 2010, 12:08:24 PM
Quote from: vbgamer45 on April 10, 2010, 11:59:48 AM
Where is that error coming from is that from a mod or SMF?

I love caching just because it makes the site performance a lot better.

I created a php page and it just the only one that shows.

http://www.chevyavalancheclub.com/av_registry.php

<?php require("/home/******/public_html/SSI.php");
$context['page_title_html_safe'] = 'AV Registry';
$context['meta_keywords'];
template_header(); 

echo
'
<h3 class="titlebg"><span class="left"></span>Chevy Avalanche Registry</h3><br />'
;
echo
'
<div style="text-align: center; font-weight: bold;"><img align="absMiddle" src="http://www.chevyavalancheclub.com/images/rightturn.png" /></a> Showcase Your Chevy Avalanche With One Picture and a list of Mods....... <a href="http://www.chevyavalancheclub.com/index.php?board=294.0">Here</a></div><br />'
;


$parameters = array(
  
'limit' => 5,
  
'board' => array(296,297,298,299,300,301,302,303),
  
'board_disp' => false,
  
'category_disp' => false,
  
'avatar' => 'right',
  
'attachments' => 'thumbnail',
  
  
);
ssi_multiBoardNews($parameters);



echo
'
<br />
<div style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0022808160619558";
/* 728x90, created 11/26/08 */
google_ad_slot = "8495718383";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>'
;
            
template_footer(); ?>
Title: Re: Performance Warning
Post by: vbgamer45 on April 10, 2010, 12:12:07 PM
Hmm I think it might be a bug with SMF then something SSI releated.
Title: Re: Performance Warning
Post by: Kays on April 10, 2010, 12:18:53 PM
Yes, if you're only using ssi_multiBoardNews on that page then the Gallery probably is not at fault.

Did this ever work before?
Title: Re: Performance Warning
Post by: Mick. on April 10, 2010, 12:56:11 PM
Quote from: Kays on April 10, 2010, 12:18:53 PM
Yes, if you're only using ssi_multiBoardNews on that page then the Gallery probably is not at fault.

Did this ever work before?

No i dont think is the gallery either. I never noticed the warning in that page until the cache was turned ON.
Title: Re: Performance Warning
Post by: Kays on April 10, 2010, 01:06:44 PM
Something to try, Add ssi_multiBoardNews to the ssi_examples.php page as you have it there. Then see if you still get the error. If so, start removing some of the parameters and see if any of them are causing it.
Title: Re: Performance Warning
Post by: Mick. on April 12, 2010, 08:01:18 PM
Quote from: Kays on April 10, 2010, 01:06:44 PM
Something to try, Add ssi_multiBoardNews to the ssi_examples.php page as you have it there. Then see if you still get the error. If so, start removing some of the parameters and see if any of them are causing it.


I removed this from my page:
$parameters = array(
  'limit' => 5,
  'board' => array(296,297,298,299,300,301,302,303),
  'board_disp' => false,
  'category_disp' => false,
  'avatar' => 'right',
  'attachments' => 'thumbnail',
 
 
);
ssi_multiBoardNews($parameters);


and the warning still appears.    Hmmm...... it may not be the ssi boardnews mod causing it.
Title: Re: Performance Warning
Post by: Kays on April 12, 2010, 08:13:55 PM
Nope, it's not that then.

Start commenting out sections of that page to try to isolate where it's coming from.
Title: Re: Performance Warning
Post by: Mick. on April 12, 2010, 08:19:14 PM
Quote from: Kays on April 12, 2010, 08:13:55 PM
Nope, it's not that then.

Start commenting out sections of that page to try to isolate where it's coming from.

Well, i figured it may not be the page as i have 2 pages:

/av_registry.php
/results.php

I only have these 2 pages outside SMF using the header and footer and both have the warning.
Title: Re: Performance Warning
Post by: Kays on April 12, 2010, 08:45:33 PM
Comment each out to see which one is causing it.
Title: Re: Performance Warning
Post by: Mick. on April 12, 2010, 08:52:17 PM
I took your advice and removed everything except the footer and header codes.

<?php require("/home/******/public_html/SSI.php");
template_header();          
template_footer(); ?>


Now an empty page, still, warning message appears.
Title: Re: Performance Warning
Post by: Kays on April 12, 2010, 08:59:41 PM
So it's either one of those then. Comment each out and see which one it is.

Just a thought, does it do it with the default theme also?
Title: Re: Performance Warning
Post by: Mick. on April 12, 2010, 09:06:27 PM
Quote from: Kays on April 12, 2010, 08:59:41 PM
So it's either one of those then. Comment each out and see which one it is.

Just a thought, does it do it with the default theme also?

Yes on default theme.

I removed 1 page and the message appeared on the page.   Then restored the page and removed the 2nd page and message also appeared.  (vice-versa).
Title: Re: Performance Warning
Post by: Kays on April 13, 2010, 09:55:48 AM
Hmm, I think this could be a bug. Somewhere. ::)

What it looks like is happening is that for RC3 the $mdSetitings['cache_enabled'] variable is now being carried in SSI.php where as before it wasn't. So the question is, is caching suppose to work when using SSI.php?

A fix. In SSI.php look for:

// Make sure wireless is always off.


and add before it:


$modSettings['cache_enable'] = 0;


Or you could add that after including SSI.php on those pages. Either way this will disable caching and clear the error.
Title: Re: Performance Warning
Post by: Mick. on April 13, 2010, 10:37:19 AM
Quote from: Kays on April 13, 2010, 09:55:48 AM
Hmm, I think this could be a bug. Somewhere. ::)

What it looks like is happening is that for RC3 the $mdSetitings['cache_enabled'] variable is now being carried in SSI.php where as before it wasn't. So the question is, is caching suppose to work when using SSI.php?

A fix. In SSI.php look for:

// Make sure wireless is always off.


and add before it:


$modSettings['cache_enable'] = 0;


Or you could add that after including SSI.php on those pages. Either way this will disable caching and clear the error.

I added directly to the page and now the message is gone.  Very cool man.

Now i can run cache level 1 or 2.
Title: Re: Performance Warning
Post by: vbgamer45 on April 13, 2010, 11:26:48 AM
Use level 2 i suggest it :)
Title: Re: Performance Warning
Post by: Mick. on April 13, 2010, 12:21:13 PM
Quote from: vbgamer45 on April 13, 2010, 11:26:48 AM
Use level 2 i suggest it :)

Yep, that's what i did.