Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Nov 01, 2008 10:53 am Reply with quote

Sorry for not having a more descriptive subject, but I couldn't come up with one.

I have the problem on my site that when I do something I have to refresh the page again for the change to show up. Basicly if I do anything in the blocks & modules admin I have to refresh the page for the affect to show. Say I add a block after confirming, the file still shows in the add list. If you delete a block and confirm it still shows until you refresh. The same is true in the modules admin, ie deactive, put in home, all do not show the change until an additional page refresh.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Nov 01, 2008 11:04 am Reply with quote

If you use FireFox, check your task manager and make sure that you don't have 2 instances of firefox.exe running. I consistently have this issue and it's directly attributable to some kind of FF bug. It happens 100% of the time when FF auto updates are received.

Aside from that, check the .htaccess directives in
Code:
# -------------------------------------------

# Only process if mod_expires is installed
# For faster load times cache certain types of files for specific amount of time
# You should adjust these settings based upon your caching requirements
# -------------------------------------------
<IfModule mod_expires.c>
   ExpiresActive On
   # ExpiresDefault A86400
   ExpiresByType image/x-icon "access plus 1 month"
   ExpiresByType text/css "access plus 5 minutes"
   ExpiresByType image/gif "access plus 1 month"
   ExpiresByType image/png "access plus 1 month"
   ExpiresByType image/jpeg "access plus 1 month"
   ExpiresByType text/plain "access plus 15 minutes"
   ExpiresByType application/x-shockwave-flash "access plus 1 month"
   ExpiresByType video/x-flv "access plus 1 month"
   ExpiresByType application/pdf "access plus 1 month"
   ExpiresByType text/html "access plus 5 minutes"
   ExpiresByType text/javascript "access plus 5 minutes"
   ExpiresByType application/x-javascript "access plus 5 minutes"
</IfModule>


Start by removing the entire block of code. Then clear your cache and delete all cookies. If that solves the problem then you can add the code back in and comment and uncomment each line until you find the cause and then make adjustments accordingly.

If none of the above corrects the problem then something else is going on.
 
View user's profile Send private message
Palbin







PostPosted: Sat Nov 01, 2008 11:23 am Reply with quote

.htaccess was the problem. Thanks.

Code:
# -------------------------------------------

# Only process if mod_expires is installed
# For faster load times cache certain types of files for specific amount of time
# You should adjust these settings based upon your caching requirements
# -------------------------------------------
<IfModule mod_expires.c>
   ExpiresActive On
#  ExpiresDefault A86400
   ExpiresByType image/x-icon "access plus 1 month"
   ExpiresByType text/css "access plus 5 minutes"
   ExpiresByType image/gif "access plus 1 month"
   ExpiresByType image/png "access plus 1 month"
   ExpiresByType image/jpeg "access plus 1 month"
   ExpiresByType text/plain "access plus 15 minutes"
   ExpiresByType application/x-shockwave-flash "access plus 1 month"
   ExpiresByType video/x-flv "access plus 1 month"
   ExpiresByType application/pdf "access plus 1 month"
#   ExpiresByType text/html "access plus 5 minutes"
   ExpiresByType text/javascript "access plus 5 minutes"
   ExpiresByType application/x-javascript "access plus 5 minutes"
</IfModule>
 
Palbin







PostPosted: Sat Nov 01, 2008 12:01 pm Reply with quote

After looking into it a little more I think the proper thing for anyone with this problem is to do the following instead.
Code:
# -------------------------------------------

# Only process if mod_expires is installed
# For faster load times cache certain types of files for specific amount of time
# You should adjust these settings based upon your caching requirements
# -------------------------------------------
<IfModule mod_expires.c>
   ExpiresActive On
#  ExpiresDefault A86400
   ExpiresByType image/x-icon "access plus 1 month"
   ExpiresByType text/css "access plus 5 minutes"
   ExpiresByType image/gif "access plus 1 month"
   ExpiresByType image/png "access plus 1 month"
   ExpiresByType image/jpeg "access plus 1 month"
   ExpiresByType text/plain "access plus 15 minutes"
   ExpiresByType application/x-shockwave-flash "access plus 1 month"
   ExpiresByType video/x-flv "access plus 1 month"
   ExpiresByType application/pdf "access plus 1 month"
   ExpiresByType text/html "A1"
   ExpiresByType text/javascript "access plus 5 minutes"
   ExpiresByType application/x-javascript "access plus 5 minutes"
</IfModule>
 
Palbin







PostPosted: Sun Nov 02, 2008 4:50 pm Reply with quote

For anyone that wants to know what the "A1" means. Setting ExpiresByType text/html to "A1" means that the time dynamically generated HTML pages are cache-able is reduced to 1 second. If you want more time just change 1 to how ever many seconds you want. All other types can be set the same way its just easier to say months etc instead of figuring out the seconds.

I have been told browser seetings can possibly casue this behavior. I am unsure what you would change to try and correct the problem. Maybe someone else can answer that Smile
 
nextgen
Worker
Worker



Joined: Sep 28, 2006
Posts: 241

PostPosted: Thu Nov 13, 2008 6:58 pm Reply with quote

Worked great my friends , great fix. Thank alot.

_________________
alterednuke.com Your source for Ravennuke themes. 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

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 ©