Support » Plugin: WP Fastest Cache » nothing cached / bad htaccess ?

  • Resolved seb7

    (@seb7)


    use 0.7.8.6 version

    Nothing gets cached.
    I choose params :
    Cache SystemEnable : yes
    nothing else checked.

    No <!– fastest cache –> comment in html.
    Nothing in wp-content/cache/ (it’s writable by apache/php)
    No errors displayed (add a notice in footer, it’s displayed)

    .htaccess is strange :

    # BEGIN WpFastestCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
    RewriteCond %{DOCUMENT_ROOT}/promysiteblog/wp-content/cache/all/promysiteblog/$1/index.html -f
    RewriteRule ^(.*) "/promysiteblog/wp-content/cache/all/promysiteblog/$1/index.html" [L]
    </IfModule>
    # END WpFastestCache
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /pro/mysite/blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /pro/mysite/blog/index.php [L]
    </IfModule>
    
    # END WordPress

    Expiration time looks to be wrong too …

    Next due	Schedule
    29-01-2014 @ 11:15	daily [ x ]
    Server time: 2014-01-29 11:13:01

    http://wordpress.org/plugins/wp-fastest-cache/

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter seb7

    (@seb7)

    next due date is now ok. (?)

    I realized that when user is logged, there is no caching. Have i missed that warning ? If not you must write it after installation steps or somewhere we can’t miss it.

    I changed the htaccess by hand (added missing / and removed rewrite conditions except last one), now it works except for the home page, cache is written but never retrieved.

    Keep on working on it, it could be a good plugin …

    Plugin Author Emre Vona

    (@emrevona)

    do you mean what “rewrite rules” are wrong?

    Plugin Author Emre Vona

    (@emrevona)

    Logged-in users don’t see the cached file. but I didn’t write any info about it. you are right. I need to add

    Thread Starter seb7

    (@seb7)

    That’s right. the path in the htaccess were wrong.
    I had
    /promysiteblog/wp-content/cache/all/promysiteblog/$1/index.html
    but the correct path is
    /pro/mysite/blog/wp-content/cache/all/pro/mysite/blog/$1/index.html

    Plugin Author Emre Vona

    (@emrevona)

    Thread Starter seb7

    (@seb7)

    no,

    Files and blog root are the same, no url/path trick applied.

    Plugin Author Emre Vona

    (@emrevona)

    is the problem about “/” ?

    Thread Starter seb7

    (@seb7)

    yes, the slashes are missing.
    should be
    /pro/mysite/blog/wp-content/cache/all/pro/mysite/blog/$1/index.html
    but is
    /promysiteblog/wp-content/cache/all/promysiteblog/$1/index.html

    Plugin Author Emre Vona

    (@emrevona)

    it works when you corrected the paths?

    Thread Starter seb7

    (@seb7)

    sorry for the long delay (i did not revceived mail).

    Yes it works with corrected path.

    Im having the same issue. Installed and activated plugin but pages were not being cached. Checked permissions (OK), checked to see if the cached files were being created (YES), finally checked .htaccess file and found this.

    The paths to my server are missing forward slashes. I’m hosting the website on MediaTemple shared grid service.

    File root on my server looks like:
    /nfs/c02/h10/mnt/

    Your plugin wrote the htaccess file like this:
    nfsc02h10mnt

    WordPress is not installed in a subdirectory.

    My cache folder looks like this:
    /cache/all/index.html

    I tried manually fixing the paths but still not luck.

    Plugin Author Emre Vona

    (@emrevona)

    Hi grizgza, can you tell me your site url?

    Plugin Author Emre Vona

    (@emrevona)

    Hi again grizgza, I fixed the problem Can you do these steps please?

    – deactive the plugin
    – delete the plugin
    – download from the plugin again
    – upload
    – active
    – choose all checkbox and save

    Thank you for your quick reply.

    I did as you instructed and I did notice the change, however the paths still aren’t correct but they are closer.

    RewriteCond %{DOCUMENT_ROOT}//nfs/c02/h10/mnt/40383/domains/grizfam.com/html/wp-content/cache/all//nfs/c02/h10/mnt/40383/domains/grizfam.com/html/$1/index.html -f

    RewriteRule ^(.*) “//nfs/c02/h10/mnt/40383/domains/grizfam.com/html/wp-content/cache/all//nfs/c02/h10/mnt/40383/domains/grizfam.com/html/$1/index.html” [L]

    There are double forward slashes “//” at the beginning of the paths. Also, should that whole server file path be repeated after “/cache/all/”? As far as I know, those subfolders folders don’t exist. I just have /wp-content/cache/all/

    Plugin Author Emre Vona

    (@emrevona)

    This part (nfs/c02/h10/mnt/40383/domains/grizfam.com) shouldn’t exist in htaccess.

    Do you have VPS or hosting? If you have VPS, can you open an account for me? I want to test on your system. I can give a domain name and you can open an account for my domain.

    If you have web hosting, I can buy a web hosting from http://mediatemple.net/. you bought from this site, didn’t you?

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘nothing cached / bad htaccess ?’ is closed to new replies.