• Resolved manogari

    (@manogari)


    Recently I upgraded W3TC plugin from version 0.9.5.1 to version 0.14.3 in my website. After the upgrade, the wp-content/cache/page_enchanced folder gone missing along with the .htaccess file in it. Usually I will delete the page_enhanced folder before every build and the page_enchaned folder will be recreated automatically after the build. But after this plugin upgrade Page_enhanced folder found missing. May I know how to resolve this ?

    • This topic was modified 4 years, 5 months ago by manogari.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manogari

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please share your website URL?
    The pages are being cached when visited so if you have the Disk: Enhanced caching method selected, the page_enhanced folder will be created with the cached pages.
    What is the Caching method you are using for Page Cache?
    Have you tried purging the cache and visiting your website as non-logged in?
    Thanks!

    Thread Starter manogari

    (@manogari)

    Hi Marko,
    What is the Caching method you are using for Page Cache?
    I am using Disk: Enhanced caching method.
    Have you tried purging the cache and visiting your website as non-logged in?
    Yeah, I tried, but the change is not reflecting as you mentioned.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manogari

    Can you please share your website URL?
    What folders do you have in wp-content/cache/?
    Thanks!

    Thread Starter manogari

    (@manogari)

    Hi @vmarko,
    What folders do you have in wp-content/cache/?
    I have the following files
    index.html,log,tmp

    I have the following questions
    1. which will the create the Page_enhanced folder?
    2. May I know the reason for the error “start, can_cache: false, reject reason: SSL caching disabled” in page_cache.log in wp-content/cache/log/ ? I am getting this error recently
    3. I am using disk:enhanced for page cache, even though I tried hitting the website many time, the page_enhanced folder is not recreated. May I know the possible reasons.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manogari

    Thank you for the information.
    Again, can you please share your website URL?
    Which settings do you have enabled in Performance>General settings?
    1. page_enhanced folder is created if the Page Caching is enabled and the caching method is set to Disk: Enhanced
    2. This means that the Cache SSL (https) requests option is not enabled in PErformance>Page Cache.
    3.The only reason possible is that the Page Cache is not enabled at all in Performance>Genelra settings.
    Since you’ve made a huge leap from 0.9.5.1 to version 0.14.3 I would advise to completely remove W3 Total Cache and reinstall with the fresh version:

    1. Purge Cache
    2. Deactivate and Delete Plugin
    3. Check .htaccess File (make a backup)
    W3TC will create many directives in the .htaccess file to control caching behavior. Each section will start and end with comments like “#BEGIN W3TC Page Cache core” and “#END W3TC Page Cache core”.
    Ensure that no residual entries are leftover in your .htaccess file after deleting the plugin.
    4. Delete wp-content files and folders
    – cache folder
    – w3tc-config folder
    – object-cache.php (if exists)
    – advanced-cache.php (if exists)
    – dbcache.php (if exists)
    – upgrade folder
    – delete w3-total-cache folder in wp-content/plugins/ (if exists)
    5. Delete Cached Files from CDN (if using CDN)
    Besides deleting all the relevant files, if you use CDN then ensure to purge the cached content from your CDN. This is necessary when you enabled the minify option in W3TC settings. You should delete the minified and combined scripts and CSS files from your CDN server to avoid the site breaking on the browser.
    6. Go to your wp dashboard and re-install W3 Total Cache
    Thanks!

    Thread Starter manogari

    (@manogari)

    Hello @vmarko,
    can you please share your website URL?
    I am sorry Marko, I am not supposed to share the website details.
    Can you please clarify these questions
    1. In Dashboard -> performance -> page cache -> it displays like “Page caching via disk: enhanced is currently enabled.”
    2. Where can I check the logs regarding this issue
    3. May I know, where will be the code to create the page_enchanced folder?
    Thanks

    • This reply was modified 4 years, 5 months ago by manogari.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manogari

    Thank you for the information.
    Yes, this means that Page caching is enabled.
    If you cannot share the URL publicly please reach us directly via the plugin in Performance>Support so we can check this as we are shooting in the dark here.
    Also, I would recommend following the steps in my previous post to completely remove and re-install the plugin since you missed a lot of updates possibly some files got corrupted.
    Thanks!

    Thread Starter manogari

    (@manogari)

    Today at 5:00 am UTC, the page_enhanced folder is created automatically but it does not have .htaccess file in that. In addition to that I also checked error logs and I am getting the below error and also found that it is because of the missing “.htaccess” file inside the page_enhanced folder. My question is, is there any default cron job is running at 5:00 am utc because I am getting this error every day at 5:00 am UTC since upgrade. May I know the reason for this.

    Uncaught Error: Call to undefined function W3TC\request_filesystem_credentials() in /var/www/html/wp-content/plugins/w3-total-cache/Util_WpFile.php:246
    Stack trace:
     #0 /wp-content/plugins/w3-total-cache/Util_WpFile.php(21): W3TC\Util_WpFile::request_filesystem_credentials()
     #1 /wp-content/plugins/w3-total-cache/Util_Rule.php(306): W3TC\Util_WpFile::write_to_file('/var/www/html/....', 'RewriteCond %{H...')
     #2 /wp-content/plugins/w3-total-cache/PgCache_Environment.php(416): W3TC\Util_Rule::add_rules(Object(W3TC\Util_Environment_Exceptions), '/PathToRootFolder/....', '# BEGIN W3TC Pa...', '# BEGIN W3TC Pa...', '# END W3TC Page...', Array, true)
     #3 /wp-content/plugins/w3-total-cache/PgCache_Environment.php(31): W3TC\PgCache_Environment->rules_core_add(Object(W3TC\Config), Object(W3TC\Util_Environment_Exceptions))
     #4 /wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php(1157): W3TC\PgCache_Environment->fix_on_wpadmin_request(Object(W3TC\Config),  in /var/www/html/wp-content/plugins/w3-total-cache/Util_WpFile.php on line 246
    
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manogari

    thank you for the information.
    The provided Uncaught Error notification regarding the filesystem_credentials was reported and fixed in the latest update.
    Please update the plugin to 0.14.4 version and see if the issue persists.
    To answer your question, W3 Total Cache does not set any cronjob to run daily or at 5:00 am utc.
    Please update the plugin to the latest 0.14.4 and let me know if the issue persists.
    Thanks!

    Thread Starter manogari

    (@manogari)

    Hi @vmarko
    May I know the function of the below line in .htaccess

      RewriteRule ^(.*\/)?w3tc_rewrite_test([0-9]+)/?$ $1?w3tc_rewrite_test=1 [L]
        RewriteCond %{HTTP:Accept-Encoding} gzip
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manogari

    Thank you for your question.
    That rule is not complete but it’s for # BEGIN W3TC Page Cache core and this is a rewrite rule for gzip compression.
    Have you updated the plugin to the latest version? Are you still experiencing the issue?
    Thanks!

    Thread Starter manogari

    (@manogari)

    Hi @vmarko,
    Thanks for all the information, the .htaccess file inside the page_enhanced folder is placed automatically when I enabled the “Verify rewrite rules” option in General settings under performance. Can you explain, what is the function of “Verify rewrite rules” ?

    Also there are no cached files that are being placed inside the page_enhanced folder before the upgrade, May I know the reason for that?

    • This reply was modified 4 years, 5 months ago by manogari.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manogari

    Verify rewrite rules are used so that W3 Total Cach can rewrite the rules for .htaccess or nginx.
    Possibly as the rewrite rules were not checked the W3TC did not create any folders, or during the update something happen.
    Thanks!

    Thread Starter manogari

    (@manogari)

    Hi @vmarko,
    Thanks for the information,
    Before upgrade we haven’t enabled the “Verify rewrite rules” but the page_enhanced folder was created on its own

    Now we face this issue, Though we got page_enhanced folder created, localhost folder (which contains cached files) which will be created inside the page_enhanced is not created while we hit the application

    Is there any specific reason for it?

    • This reply was modified 4 years, 5 months ago by manogari.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Page enhanced folder is missing’ is closed to new replies.