• Hi,

    I’ve just installed and configured nginx for advanced use with wp-super-cache.Test cache works successfully, however, the /var/www/html/wp-content/cache/ folder remains empty.

    Cache Contents

    WP-Cache (0KB)

    0 Cached Pages
    0 Expired Pages
    WP-Super-Cache (0KB)

    0 Cached Pages
    0 Expired Pages`

    I tried preloading without success; no files appear on the server and the statistics don’t update either. Paths are defined in wp-config.php. I’ve scoured the net for a solution, including this forum without luck.

    I enabled the debug log which hasn’t provided any insight or errors that can point me to a resolution.

    Additional troubleshooting steps that were taken:
    Verified that the cache directory is writeable
    Verified that advanced-cache.php was created

    I have noticed off-behavior. When I started a preload, it generated a directory on the server for the site located in /var/www/html/wp-content/cache/supercache/<WEBSITE URL>, parsed several hundred posts, wrote one of them to a file in the cache, and then proceeded to delete it out the cache folder? While this occurred, I regenerated cache stats and it showed 1 Cached Page and I was able to see it in the listed cache files. It soon after disappeared, not even a minute later.

    Log:

    16:02:20 19295 /wp-cron.php?doing_wp_cron=1644076940.4540030956268310546875 wp_cache_replace_line: setting not changed - $wp_cache_debug_log = '<REMOVED FOR PRIVACY>'; 
    16:02:20 19295 /wp-cron.php?doing_wp_cron=1644076940.4540030956268310546875 wp_cache_replace_line: setting not changed - $wp_cache_debug_username = '<REMOVED FOR PRIVACY>'; 
    16:02:20 19295 /wp-cron.php?doing_wp_cron=1644076940.4540030956268310546875 gc: could not delete ABSPATH/wp-content/cache/.htaccess as it's protected. 
    16:02:20 19295 /wp-cron.php?doing_wp_cron=1644076940.4540030956268310546875 prune_super_cache: did not delete file: ABSPATH/wp-content/cache/.htaccess 
    16:02:20 19295 /wp-cron.php?doing_wp_cron=1644076940.4540030956268310546875 gc: could not delete ABSPATH/wp-content/cache/.htaccess as it's protected. 
    16:02:20 19254 /category/wildcats/ wpsc_is_caching_user_disabled: false 
    16:02:20 19254 /category/wildcats/ Output buffer callback 
    16:02:20 19254 /category/wildcats/ wp_cache_get_cookies_values: return: 
    16:02:20 19254 /category/wildcats/ Anonymous user detected. Only creating Supercache file. 
    16:02:20 19254 /category/wildcats/ wpsc_is_caching_user_disabled: false 
    16:02:20 19254 /category/wildcats/ wp_cache_get_cookies_values: return: 
    16:02:20 19254 /category/wildcats/ Gzipping buffer. 
    16:02:20 19254 /category/wildcats/ Writing non-gzipped buffer to supercache file. 
    16:02:20 19254 /category/wildcats/ Writing gzipped buffer to supercache file. 
    16:02:20 19254 /category/wildcats/ Renamed temp supercache file to ABSPATH/wp-content/cache/supercache/<REMOVED FOR PRIVACY>/category/wildcats/index-https.html 
    16:02:20 19254 /category/wildcats/ Renamed temp supercache gz file to ABSPATH/wp-content/cache/supercache/<REMOVED FOR PRIVACY>/category/wildcats/index-https.html.gz 
    16:02:20 19254 /category/wildcats/ Writing gzip content headers. Sending buffer to browser 
    16:02:20 19254 /category/wildcats/ wp_cache_shutdown_callback: collecting meta data. 
    16:02:20 19254 /category/wildcats/ Did not write meta file: meta-wp-cache-b62d4428a2dcb538e5134c5a8ea29d15.php 
    supercacheonly: 1 
    wp_cache_not_logged_in: 2 
    new_cache:1

    Appreciate any assistance.

    Thanks!

    • This topic was modified 4 years, 4 months ago by inevitablezn.
    • This topic was modified 4 years, 4 months ago by inevitablezn.
    • This topic was modified 4 years, 4 months ago by inevitablezn.

The topic ‘Wp-Super-Cache Not Working – Cache Contents 0’ is closed to new replies.