Using mod_cache shows top page only
-
I’ve been struggling for weeks trying to get mod_cache/disk to work. I don’t want to use a plugin for this, I’d like to accomplish the cache at the server level.
This is my cache setup. Something is not right in this because when I enable it, it speeds up the site a lot, it also pretty much only shows the top page.
For example, you can see the top page but any other page/menu/post you click on, still shows the top page. I’ve found many posts and articles but none seem to fix this problem and almost all of the replies are slight variations that don’t change anything.
I’m showing the other section I’m using, mod_expires because I have to consider that maybe the reason is related to a combination with caching. Once I comment caching, things work again.
I have also tried enabling the cache and disabling mod_expire but as soon as the cache is enabled, the problem shows up.
Can anyone see what I am doing wrong in this?
`
#<IfModule mod_cache.c>
# CacheQuickHandler off
# CacheIgnoreNoLastMod On
# CacheDefaultExpire 180
# CacheIgnoreCacheControl On
# CacheLastModifiedFactor 0.5
# CacheIgnoreHeaders Set-Cookie Cookie
# CacheHeader Off
# CacheLock On
# CacheDisable /wp-admin
# CacheDisable /wp-login.php
# CacheDisable /wp-cron.php
# CacheDisable /wp-content
#
# SetOutputFilter CACHE
# AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/rss+xml text/xml image/svg+xml
#
# CacheDetailHeader Off
# CacheMinExpire 5
# CacheStoreExpired Off
# CacheLockMaxAge 5
#
## <IfModule mod_mem_cache.c>
## CacheEnable mem /
## CacheSize 4096
## CacheMaxObjectCount 100
## CacheMinObjectSize 1
## CacheMaxObjectSize 2048
## </IfModule>
#
# <IfModule mod_cache_disk.c>
# CacheRoot /var/cache/httpd/mod_cache_disk
# CacheEnable disk /
# CacheDirLevels 2
# CacheDirLength 1
# CacheMaxFileSize 20000000
# </IfModule>
#</IfModule><IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg “access 1 month”
ExpiresByType image/jpeg “access 1 month”
ExpiresByType image/gif “access 1 month”
ExpiresByType image/png “access 1 month”
ExpiresByType text/css “access 1 month”
ExpiresByType text/html “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType text/x-javascript “access 1 month”
ExpiresByType image/x-icon “access 1 month”
ExpiresDefault “access 1 month”
</IfModule>
The topic ‘Using mod_cache shows top page only’ is closed to new replies.