WordPress.org

Forums

WP Super Cache
WP Super cache writing cache file to wrong location for mod_rewrite (3 posts)

  1. badams77
    Member
    Posted 1 year ago #

    I'm using WP Super cache version 1.4 on wordpress 3.9.1 with mod_rewrite
    however super cache is not writing to the correct file to work with mod_rewrite. It does create the directory

    /wp-content/cache/supercache/servername/filename/
    but instead of writing to index.html in that directory,
    it writes a file
    /wp-content/cache/supercache/wp-cache-hexstring.html

    How can i make it right to index.html
    in the /wp-content/cache/supercache/servername/filename/ directory

    I have another server, where it seems to work correctly writing to the right location, have you any idea why its going wrong on this server?

    I enabled logging but it was no help, sample log file section:

    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_/ Cookie detected: wordpre
    ss_logged_in_6e4a1d4d65b583224a4ebd122e76bf11
    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_/ Cookie detected: wordpre
    ss_logged_in_1a22de8b21d6d9f426eef45b7e89148e
    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_/ Cookie detected: wordpre
    ss_logged_in_2cc9154cf633d80f57195d78d1238584
    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ supercache dir: /opt/www/wordpress/wp-content/cache/noauth/supercache/discovery.newscientist.com/article/mg
    22229733-200-edit-genes-to-write-hiv-out-of-picture/
    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ No Super Cache file found for current URL: /opt/www/wordpress/wp-content/cache/noauth/supercache/discovery.
    newscientist.com/article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/index.html
    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_2cc9154cf633d80f57195d78d1
    238584/ Cookie detected: wordpress_logged_in_2cc9154cf633d80f57195d78d1238584
    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ In WP Cache Phase 2
    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ Setting up WordPress actions
    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ Created output buffer
    14:15:54 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_2cc9154cf633d80f57195d78d1
    238584/ Cookie detected: wordpress_logged_in_2cc9154cf633d80f57195d78d1238584
    14:16:24 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ Output buffer callback
    14:16:24 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ wp_cache_get_cookies_values: /^wp-postpass|^comment_author_|^wordpress_logged_in_2cc9154cf633d80f57195d78d1
    238584/ Cookie detected: wordpress_logged_in_2cc9154cf633d80f57195d78d1238584
    14:16:24 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ Writing non-gzipped buffer to wp-cache cache file.
    14:16:24 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ Renamed temp wp-cache file to /opt/www/wordpress/wp-content/cache/noauth/wp-cache-1c4739b20cf1cd9fc0326176b
    87f1013.html
    14:16:24 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ Sending buffer to browser
    14:16:24 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ wp_cache_shutdown_callback: collecting meta data.
    14:16:24 /article/mg22229733-200-edit-genes-to-write-hiv-out-of-picture/ Writing meta file: /opt/www/wordpress/wp-content/cache/noauth/meta/wp-cache-1c4739b20cf1cd9fc0326176b87f101
    3.meta

    [Moderator Note: Please post log files between backticks or use the code button.]

    Its renaming wp-cache file to the wrong location for some reason.

    https://wordpress.org/plugins/wp-super-cache/

  2. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Hi!

    I'm not sure why this is happening, but I noticed that http://discovery.newscientist.com/ isn't responding (it's in your quoted log above). Is that the right site?

  3. badams77
    Member
    Posted 1 year ago #

    The site is internal to our business only.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic