كود vBulletin3.8.0 حذف وتفريغ كاش الموقع لتسريع المنتدى او الموقع اثناء التصفح

admin

عضو إداري
ادارة المنتدى

السلام عليكم ورحمة الله وبركاته
يعرف الكاش بانه الموقع الذي تخزن فية بيانات المواقع التي يتم زيارتها وعند تكرار زيارتها يتم سحبها من موقع التخزين المؤقت وليس من الانترنت مما يعطي سرعة فائقة في التصفح ويتفاجئ العميل بسرعة الشبكة وهو لايعلم انها عملية تخزين لا اقل ولا اكثر.
وحتى ننم هذه العمليه سيتم اضافة كود بملف .htaccess وافضل مكان هو لملف .htaccess ان يتم وضعه في مسار www عشان يضغط كل الملفات.
الخطوات
فى ملف الهاتكس ابحث عن


كود:
RewriteEngine On

اسفلها ضع هذا الكود
كود:
<IfModule mod_mime.c>
AddType text/css .css
AddType application/javascript .js
AddType application/x-javascript .js
AddType text/html .html .htm
AddType text/richtext .rtf .rtx
AddType image/svg+xml .svg .svgz
AddType text/plain .txt
AddType text/xsd .xsd
AddType text/xsl .xsl
AddType text/xml .xml
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
AddType image/bmp .bmp
AddType application/java .class
AddType video/divx .divx
AddType application/msword .doc .docx
AddType application/x-msdownload .exe
AddType image/gif .gif
AddType application/x-gzip .gz .gzip
AddType image/x-icon .ico
AddType image/jpeg .jpg .jpeg .jpe
AddType application/vnd.ms-access .mdb
AddType audio/midi .mid .midi
AddType video/quicktime .mov .qt
AddType audio/mpeg .mp3 .m4a
AddType video/mp4 .mp4 .m4v
AddType video/mpeg .mpeg .mpg .mpe
AddType application/vnd.ms-project .mpp
AddType application/vnd.oasis.opendocument.database .odb
AddType application/vnd.oasis.opendocument.chart .odc
AddType application/vnd.oasis.opendocument.formula .odf
AddType application/vnd.oasis.opendocument.graphics .odg
AddType application/vnd.oasis.opendocument.presentation .odp
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.text .odt
AddType audio/ogg .ogg
AddType application/pdf .pdf
AddType image/png .png
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
AddType audio/x-realaudio .ra .ram
AddType application/x-shockwave-flash .swf
AddType application/x-tar .tar
AddType image/tiff .tif .tiff
AddType audio/wav .wav
AddType audio/wma .wma
AddType application/vnd.ms-write .wri
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
AddType application/zip .zip
</IfModule>

الكود من من الموقع الرسمى للـ vBulletin
 

أعلى