Support » Plugin: Swift Performance Lite » Many cache folders instead of one

  • Resolved bramik


    there was a strange situation in a website we manage.

    Some people visiting the website saw an old, outdated version of the homepage (we understood this by analyzing the browser headers that loaded a page of 10 July of this year)

    We could not understand why some people saw the updated version and others saw an old version.

    We noticed that in the plugin cache directory inside /wpcontent/cache/ in addition to the official directory:

    there were 3 other folders

    the date of these folders was old.

    We understood that probably those who saw the version of the page not updated was loading the old copy of the homepage in the cache present in the folder without www (

    How can this happen ? I mean that swift creates 4 folders instead of only one (the mail

    Thank you
    Very Much

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Fred


    Probably this is caused by an improper order of htaccess rules or forced www/non-www rule in htaccess. Please remove these rules from .htaccess, and insert them in Settings > General > Tweaks > Custom .htaccess.

    example you migh use: (don`t forget to change with your site domain).

    # Redirect non-www to (ssl) www
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example\.com [NC]
    RewriteRule ^(.*)$$1 [L,R=301]
    # Redirect non-SSL to SSL
    RewriteCond %{HTTPS} !on
    RewriteCond %{SERVER_PORT} !^443$
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

    The old folders you may remove manually.

    Plugin Contributor Fred


    Hey there,
    Since this topic has been inactive for a while, I’m going to go ahead and mark as resolved. Don’t hesitate to reopen or create a new topic if you still need help!
    Thanks for understanding!.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Many cache folders instead of one’ is closed to new replies.