Title: Caching is not working
Last modified: August 22, 2016

---

# Caching is not working

 *  [makensis](https://wordpress.org/support/users/makensis/)
 * (@makensis)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/caching-is-not-working/)
 * I turned on Wordfence Falcon Engine with debuggind and then I checked FTP and
   saw – cached files incoming but when I visited website It wasn’t cached(as unlogged
   member). .htaccess it’s look OK. Website it’s not a subdomain.
    Source of .htaccess:
 *     ```
       #WFIPBLOCKS - Do not remove this line. Disable Web Caching in Wordfence to remove this data.
       Order Deny,Allow
       #Do not remove this line. Disable Web Caching in Wordfence to remove this data - WFIPBLOCKS
       #WFCACHECODE - Do not remove this line. Disable Web Caching in Wordfence to remove this data.
       <IfModule mod_deflate.c>
       	AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
       	<IfModule mod_headers.c>
       		Header append Vary User-Agent env=!dont-vary
       	</IfModule>
       	<IfModule mod_mime.c>
       		AddOutputFilter DEFLATE js css htm html xml
       	</IfModule>
       </IfModule>
       <IfModule mod_mime.c>
       	AddType text/html .html_gzip
       	AddEncoding gzip .html_gzip
       	AddType text/xml .xml_gzip
       	AddEncoding gzip .xml_gzip
       </IfModule>
       <IfModule mod_setenvif.c>
       	SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
       	SetEnvIfNoCase Request_URI \.xml_gzip$ no-gzip
       </IfModule>
       <IfModule mod_headers.c>
       	Header set Vary "Accept-Encoding, Cookie"
       </IfModule>
       <IfModule mod_rewrite.c>
       	#Prevents garbled chars in cached files if there is no default charset.
       	AddDefaultCharset utf-8
   
       	#Cache rules:
       	RewriteEngine On
       	RewriteBase /
       	RewriteCond %{HTTPS} on
       	RewriteRule .* - [E=WRDFNC_HTTPS:_https]
       	RewriteCond %{HTTP:Accept-Encoding} gzip
       	RewriteRule .* - [E=WRDFNC_ENC:_gzip]
       	RewriteCond %{REQUEST_METHOD} !=POST
       	RewriteCond %{HTTPS} off
       	RewriteCond %{QUERY_STRING} ^(?:\d+=\d+)?$
       	RewriteCond %{REQUEST_URI} (?:\/|\.html)$ [NC]
   
       	RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|wf_logout|wordpress_logged_in|wptouch_switch_toggle|wpmp_switcher) [NC]
   
       	RewriteCond %{REQUEST_URI} \/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)(.*)$
       	RewriteCond "%{DOCUMENT_ROOT}/wp-content/wfcache/%{HTTP_HOST}_%1/%2~%3~%4~%5~%6_wfcache%{ENV:WRDFNC_HTTPS}.html%{ENV:WRDFNC_ENC}" -f
       	RewriteRule \/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)(.*)$ "/wp-content/wfcache/%{HTTP_HOST}_$1/$2~$3~$4~$5~$6_wfcache%{ENV:WRDFNC_HTTPS}.html%{ENV:WRDFNC_ENC}" [L]
       </IfModule>
       #Do not remove this line. Disable Web caching in Wordfence to remove this data - WFCACHECODE
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
       <IfModule deflate_module>
       	<IfModule filter_module>
       		AddOutputFilterByType DEFLATE text/plain text/html
       		AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd
       		AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
       		AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript
       		AddOutputFilterByType DEFLATE font/otf font/opentype application/font-otf application/x-font-otf
       		AddOutputFilterByType DEFLATE font/ttf font/truetype application/font-ttf application/x-font-ttf
       	</IfModule>
       </IfModule>
       # END WordPress
       ```
   
 * Let me know what is wrong.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/caching-is-not-working/#post-5526262)
 * Can you check the option on the Performance Setup page for this option:
    Add 
   hidden debugging data to the bottom of the HTML source of cached pages Check 
   that box and look again. You may have to go through a proxy so your ip address
   is changed. I didn’t have mine whitelisted but found I had to be coming from 
   an ip address not on my network to see the files cached.
 * tim
 *  Thread Starter [makensis](https://wordpress.org/support/users/makensis/)
 * (@makensis)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/caching-is-not-working/#post-5526296)
 * Yes, debugining data appear on cached files but not on website pages. I have 
   no proxy. Server is overload during this plugin active. Changing to simply caching
   it’s not really helpfull too. I had to come back to Quick Cache.
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/caching-is-not-working/#post-5526308)
 * If you can turn it on again, I’ll check and see if I see it. I’ll need the website
   address too.
 * tim
 *  Thread Starter [makensis](https://wordpress.org/support/users/makensis/)
 * (@makensis)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/caching-is-not-working/#post-5526422)
 * If you not busy I can give you grand access to our server. Try to contact me 
   directly if possible ( makensis monkey 😉 wp dot pl ).
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/caching-is-not-working/#post-5526423)
 * Shoot me an email to tim [at] wordfence.com

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Caching is not working’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 5 replies
 * 2 participants
 * Last reply from: [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/caching-is-not-working/#post-5526423)
 * Status: not resolved