Apache cache setup

  • Unknown's avatar

    Really, no idea where this should be posted so if needed to be moved, please do or I’ll re-post it.

    This is my cache setup. Something is not right in this because when I enable it, while it speeds up the site a lot, it also prevents pages from being seen.

    For example, you can see the top page but any other page/menu/post you click on, you still see the top page.

    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>

  • Hi there,

    Your site is not hosted on WordPress.com, but using the open source WordPress.org software at another hosting provider. We’re only able to help with sites hosted on our servers at WordPress.com.

    Please ask the WordPress.org community for advice instead. They provide support for the version of WordPress you’re using:

    https://wordpress.org/support/forums

  • The topic ‘Apache cache setup’ is closed to new replies.