• Hi

    I have WP Supercache installed on a multisite wordpress installation and it doesnt seem to be saving files. There are no errors regarding .htacces or rewrite rules etc

    When i ftp to the cache directory, /var/sites/s/mydomain/public_html/wp-content/cache/
    I have another directory called supercache with two directories inside which are my two domains running on my multisite install

    There are files in the second folder, i.e. mydomain2.co.uk but nothing in my main domain mydomain1.co.uk

    now if i go to the settings in either networked site or the main network settings page under the cache location section, each one has the same path i.e. /var/sites/s/mydomain/public_html/wp-content/cache/

    rather than /var/sites/s/mydomain/public_html/wp-content/cache/supercache/mydomain1.co.uk

    Should i set these up to cache to /var/sites/s/mydomain/public_html/wp-content/cache/supercache/mydomain1.co.uk

    and

    /var/sites/s/mydomain/public_html/wp-content/cache/supercache/mydomain2.co.uk

    for each networked site??

    Also my .htaccess file is in /var/sites/s/mydomain/public_html/wp-content/cache/.htaccess and not in the /var/sites/s/mydomain/public_html/wp-content/cache/supercache/mydomain1.co.uk folder, should it be??

    Thanks for any help

Viewing 4 replies - 1 through 4 (of 4 total)
  • It looks like it’s set up correctly. Did you enable debugging and visit domain1.co.uk? It should tell you why the plugin isn’t writing cache files.

    Thread Starter albertramsbottom

    (@albertramsbottom)

    Thanks

    all i get from the below is it is confused between mydomin1 and mydomain2

    It is writing the cache to mydomain2.c.uk to the supercache folder but trying to write to the cache folder for mydomain1

    11:45:32 28690 /blog/page/1/ wpsc_get_realpath: directory does not exist - /var/sites/s/mydomain1.co.uk/public_html/wp-content/cache/blogs/blog/ 
    11:45:32 28690 /blog/page/1/ wpsc_get_realpath: directory does not exist - /var/sites/s/mydomain1.co.uk/public_html/wp-content/cache/blogs/blog/meta/ 
    11:45:32 28690 /blog/page/1/ supercache dir: /var/sites/s/mydomain1.co.uk/public_html/wp-content/cache/supercache/mydomain2.co.uk/blog/page/1/ 
    11:45:32 28690 /blog/page/1/ wp_cache_check_mobile: 
    11:45:32 28690 /blog/page/1/ No Super Cache file found for current URL: /var/sites/s/mydomain1/public_html/wp-content/cache/supercache/mydomain2/blog/page/1/index.html 
    11:45:32 28690 /blog/page/1/ In WP Cache Phase 2 
    11:45:32 28690 /blog/page/1/ Setting up WordPress actions 
    11:45:32 28690 /blog/page/1/ Created output buffer 
    11:45:32 28690 /blog/page/1/ wp_cache_get_cookies_values: return: 
    11:45:32 28690 /blog/page/1/ wpcache_do_rebuild: doing rebuild for /var/sites/s/mydomain1mydomain1.co.uk/public_html/wp-content/cache/supercache/mydomain2.co.uk/blog/page/1/ 
    11:45:32 28690 /blog/page/1/ wpcache_do_rebuild: exiting as directory is not a directory: /var/sites/s/mydomain1.co.uk/public_html/wp-content/cache/supercache/mydomain2.co.uk/blog/page/1/ 
    11:45:32 28690 /blog/page/1/ Redirect detected. Caching disabled. 
    11:45:32 28690 /blog/page/1/ wp_cache_maybe_dynamic: returned $buffer 
    11:45:32 28714 /blog/ wp_cache_get_cookies_values: return: 
    11:45:32 16064 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: /^wp-postpass_|^comment_author_|^wordpress_logged_in_/ Cookie detected: wordpress_logged_in_ff7285384e31d0f84a7facaef33485ae 
    11:45:32 16064 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: return: 4930eaa7c3d47e888c0dc8e1c5e57484 
    11:45:32 16064 /wp-admin/admin-ajax.php Caching disabled for logged in users on settings page. 
    11:45:34 16064 /wp-admin/admin-ajax.php Supercache Late Init: add wp_cache_serve_cache_file to init 
    11:45:35 16064 /wp-admin/admin-ajax.php Supercache Late Loader running on init 
    it 
    11:45:35 28714 /blog/ Supercache Late Loader running on init 
    11:45:35 28714 /blog/ wp_cache_get_cookies_values: return: 
    11:45:35 28714 /blog/ wp_cache_check_mobile: streettees.co.uk80/blog/ 
    11:45:35 28714 /blog/ wpsc_get_realpath: directory does not exist - /var/sites/s/mydomain1.co.uk/public_html/wp-content/cache/blogs/blog/ 
    11:45:35 28714 /blog/ wpsc_get_realpath: directory does not exist - /var/sites/s/mydomain1.co.uk/public_html/wp-content/cache/blogs/blog/meta/ 
    11:45:35 28714 /blog/ supercache dir: /var/sites/s/mydomain1.co.uk/public_html/wp-content/cache/supercache/mydomain2/blog/ 
    11:45:35 28714 /blog/ wp-cache file exists: /var/sites/s/mydomain1.co.uk/public_html/wp-content/cache/supercache/mydomain2.co.uk/blog/wp-cache-blog678bc9c15040bcce54efad019d74ad61.php 
    Thread Starter albertramsbottom

    (@albertramsbottom)

    To summarise

    It is writing it cache for mydomain2.co.uk to public_html/wp-content/cache/supercache/mydomain2.co.uk

    And trying to write mydomain1.co.uk to public_html/wp-content/cache/

    even though there is two folders in public_html/wp-content/cache/supercache/
    mydomain1.co.uk
    mydomain2.co.uk

    Cheers

    Thread Starter albertramsbottom

    (@albertramsbottom)

    I do have some files in my supercache/mydomain1.co.uk folder now but in total i have 34 files in the whole cache folder

    It is not caching my woocommerce products and only seems to be caching the blog pages

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘No cache files in cache directory’ is closed to new replies.