Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2014, 11:26 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default litespeed cache issue

I just installed Litespeed on my server using this plugin:
http://www.litespeedtech.com/support...auto-installer

I'm running vBulletin 4 and I realized when new content is posted such as a new post or thread, it'll refresh the page but I have to manually F5 refresh to see my new post on the page. This was not the case prior to installing Litespeed. How can I fix this? I'm not running vbseo either but dbseo.

.htaccess for vbulletin

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com
RewriteRule (.*)  http://www.mydomain.com/$1 [L,R=301]
RewriteCond %{REQUEST_URI} !(admincp/|modscp/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ dbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modscp|clientscript|cpstyles|images|gallery)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]
## Expires
<ifModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 year"
    ExpiresByType text/html "access plus 1 year"
    ExpiresByType text/php "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType text/css "access plus 1 year"
    ExpiresByType text/javascript "access plus 1 year"
    ExpiresByType application/javascript "access plus 1 year"
    ExpiresByType application/x-javascript "access plus 1 year"
</ifModule>
## Rewrites
<ifmodule mod_rewrite.c>
    RewriteEngine on
    Options +FollowSymlinks
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    # Media Library
    ReWriteRule ^media/m(\d+).*/tags$ media.php?do=tags_edit&mid=$1 [QSA]
    ReWriteRule ^media/m(\d+).*/edit$ media.php?do=details_edit&mid=$1 [QSA]
    ReWriteRule ^media/m(\d+).*/report$ media.php?do=report&mid=$1 [QSA]
    ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$2 [QSA]
    ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$2 [QSA]
    ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$1 [QSA]
    ReWriteRule ^media/p(\d+).*/edit$ media.php?do=playlist_edit&pid=$1 [QSA]
    ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$1 [QSA]
    ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$1 [QSA]
    ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$1 [QSA]
    ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$1 [QSA]
    ReWriteRule ^media/results/(.*) media.php?do=results&query=$1 [QSA]
    ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$1 [QSA]
    ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$1 [QSA]
    ReWriteRule ^media/browse.* media.php?do=browse [QSA]
    ReWriteRule ^media/search.* media.php?do=search [QSA]
    ReWriteRule ^media/random.* media.php?do=random [QSA]
    ReWriteRule ^media/submit.* media.php?do=submit [QSA]
    ReWriteRule ^media/tagcloud.* media.php?do=tagcloud [QSA]
    ReWriteRule ^media/playlists.* media.php?do=playlists [QSA]
    ReWriteRule ^media/pcreate.* media.php?do=playlists_create [QSA]
    ReWriteRule ^media/pmine.* media.php?do=playlists_mine [QSA]
    ReWriteRule ^media/favorites.* media.php?do=favorites [QSA]
    ReWriteRule ^media/subscriptions.* media.php?do=subscriptions [QSA]
    ReWriteRule ^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$1 [QSA]
    ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$1 [QSA]
    ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$1 [QSA]
    ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$1 [QSA]
    # Media Library from Video Directory
    RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
    RewriteRule ^video\.php$ media.php?do=details&mid=%1
    RewriteCond %{QUERY_STRING} viewcategory&categoryid=(\d+)
    RewriteRule ^video\.php$ media.php?do=category&cid=%1
    RewriteCond %{QUERY_STRING} viewuser&userid=(\d+)
    RewriteRule ^video\.php$ media.php?do=user&uid=%1
    RewriteCond %{QUERY_STRING} viewtag&tag=(.*)
    RewriteRule ^video\.php$ media.php?do=tag&tid=%1
    ReWriteRule ^video\.php$ media.php
    # Forum
    RewriteRule ^threads/.* showthread.php [QSA]
    RewriteRule ^forums/.* forumdisplay.php [QSA]
    RewriteRule ^members/.* member.php [QSA]
    RewriteRule ^blogs/.* blog.php [QSA]
    ReWriteRule ^entries/.* entry.php [QSA]
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    # MVC
    RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
  
</ifmodule>
#Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
RewriteCond %{HTTP_HOST} ^mydomain\.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.org$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^mydomain\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.co\.uk$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^mydomain\.us$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.us$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^mydomain\.info$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.info$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^mydomain\.mobi$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.mobi$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^mydomain\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mydomain\.net$
RewriteRule ^/?$ "http\:\/\/www\.mydomain\.com\/" [R=301,L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
Reply With Quote
  #2  
Old 05-02-2014, 02:20 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove the .htaccess... does it work then?
Reply With Quote
  #3  
Old 05-02-2014, 03:39 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ExpiresByType text/html "access plus 1 year"
vBulletin is text/html that is a bad choice.
Reply With Quote
  #4  
Old 05-02-2014, 12:21 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
ExpiresByType text/html "access plus 1 year"
vBulletin is text/html that is a bad choice.
That's what I was thinking. Take out the ExpiresDefault "access plus 1 year" too. It's not litespeed cache that's doing this, it's browser cache.

You have to add some specific rules and a plugin to get the litespeed cache to work with vbulletin. The link is for vbseo, but the concept is the same for dbseo.
Reply With Quote
  #5  
Old 05-02-2014, 09:29 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I removed those 2 lines. However, now anytime a member (even me as admin) tries to view their own profile it gives off this error:

This user has not registered and therefore does not have a profile to view.


I'm logged in however.

The expires portion left in htaccess is simply this:

EDIT / UPDATE:

I moved some stuff around and now profile works, but the 8way media is not working (clicking videos or categories takes me to the forum home page)

Code:
RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.talkjesus\.com
RewriteRule (.*)  http://www.talkjesus.com/$1 [L,R=301]

RewriteCond %{REQUEST_URI} !(adminXXXX/|modsXXXX/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ dbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(adminXXXX|modsXXXX|clientscript|cpstyles|images|gallery)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]

## Rewrites
<ifmodule mod_rewrite.c>
    RewriteEngine on
    Options +FollowSymlinks

    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]

    # Media Library
    ReWriteRule ^media/m(\d+).*/tags$ media.php?do=tags_edit&mid=$1 [QSA]
    ReWriteRule ^media/m(\d+).*/edit$ media.php?do=details_edit&mid=$1 [QSA]
    ReWriteRule ^media/m(\d+).*/report$ media.php?do=report&mid=$1 [QSA]
    ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$2 [QSA]
    ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$2 [QSA]
    ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$1 [QSA]
    ReWriteRule ^media/p(\d+).*/edit$ media.php?do=playlist_edit&pid=$1 [QSA]
    ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$1 [QSA]
    ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$1 [QSA]
    ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$1 [QSA]
    ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$1 [QSA]
    ReWriteRule ^media/results/(.*) media.php?do=results&query=$1 [QSA]
    ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$1 [QSA]
    ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$1 [QSA]
    ReWriteRule ^media/browse.* media.php?do=browse [QSA]
    ReWriteRule ^media/search.* media.php?do=search [QSA]
    ReWriteRule ^media/random.* media.php?do=random [QSA]
    ReWriteRule ^media/submit.* media.php?do=submit [QSA]
    ReWriteRule ^media/tagcloud.* media.php?do=tagcloud [QSA]
    ReWriteRule ^media/playlists.* media.php?do=playlists [QSA]
    ReWriteRule ^media/pcreate.* media.php?do=playlists_create [QSA]
    ReWriteRule ^media/pmine.* media.php?do=playlists_mine [QSA]
    ReWriteRule ^media/favorites.* media.php?do=favorites [QSA]
    ReWriteRule ^media/subscriptions.* media.php?do=subscriptions [QSA]
    ReWriteRule ^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$1 [QSA]
    ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$1 [QSA]
    ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$1 [QSA]
    ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$1 [QSA]

    # Media Library from Video Directory
    RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
    RewriteRule ^video\.php$ media.php?do=details&mid=%1
    RewriteCond %{QUERY_STRING} viewcategory&categoryid=(\d+)
    RewriteRule ^video\.php$ media.php?do=category&cid=%1
    RewriteCond %{QUERY_STRING} viewuser&userid=(\d+)
    RewriteRule ^video\.php$ media.php?do=user&uid=%1
    RewriteCond %{QUERY_STRING} viewtag&tag=(.*)
    RewriteRule ^video\.php$ media.php?do=tag&tid=%1
    ReWriteRule ^video\.php$ media.php

    # Forum
    RewriteRule ^threads/.* showthread.php [QSA]
    RewriteRule ^forums/.* forumdisplay.php [QSA]
    RewriteRule ^members/.* member.php [QSA]
    RewriteRule ^blogs/.* blog.php [QSA]
    ReWriteRule ^entries/.* entry.php [QSA]

    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]

    # MVC
    RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
    
</ifmodule>

## Expires
<ifModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType text/css "access plus 1 year"
    ExpiresByType text/javascript "access plus 1 year"
    ExpiresByType application/javascript "access plus 1 year"
    ExpiresByType application/x-javascript "access plus 1 year"
</ifModule>

#Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>

RewriteCond %{HTTP_HOST} ^talkjesus\.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.talkjesus\.org$
RewriteRule ^/?$ "http\:\/\/www\.talkjesus\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^talkjesus\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.talkjesus\.co\.uk$
RewriteRule ^/?$ "http\:\/\/www\.talkjesus\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^talkjesus\.us$ [OR]
RewriteCond %{HTTP_HOST} ^www\.talkjesus\.us$
RewriteRule ^/?$ "http\:\/\/www\.talkjesus\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^talkjesus\.info$ [OR]
RewriteCond %{HTTP_HOST} ^www\.talkjesus\.info$
RewriteRule ^/?$ "http\:\/\/www\.talkjesus\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^talkjesus\.mobi$ [OR]
RewriteCond %{HTTP_HOST} ^www\.talkjesus\.mobi$
RewriteRule ^/?$ "http\:\/\/www\.talkjesus\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^talkjesus\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.talkjesus\.net$
RewriteRule ^/?$ "http\:\/\/www\.talkjesus\.com\/" [R=301,L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03715 seconds
  • Memory Usage 2,225KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete