• Resolved loyukfai

    (@loyukfai)


    It seems whenever I visit the site with a logged-in user, the whole cache folder is emptied, I would like to find out what’s the culprit, is there any way for me to find out?

    Cheers.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support wpmansour

    (@wpmansour)

    By default, WP-Optimize does not cache pages for logged-in users. If you’re seeing the entire cache folder being emptied, this could be due to the plugin purging the cache based on logged-in user actions.

    To resolve this, please navigate to WP Admin Panel > WP-Optimize > Cache and check the box for “Serve cached pages to logged in users.” This should prevent the cache from being purged every time a logged-in user visits the site.

    Could you try this and let me know if the issue persists?

    Thread Starter loyukfai

    (@loyukfai)

    Thanks! Sorry for not being clear, but I’m referring to being logged in in the admin panel, and every click currently results in the cache folder being emptied.

    So I guess there is something wrong with my set up, perhaps a recently installed plugin keeps triggering the cache flush mechanism, so I wonder if I can enable some logs to find out who’s doing that.

    Cheers.

    Plugin Support wpmansour

    (@wpmansour)

    Noted! To investigate further and identify what’s triggering the cache purge, I’d appreciate it if you could provide the site’s error log. This will help us pinpoint the exact issue. Please update your wp-config.php file by adding or modifying the following lines:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    This will create a debug.log file in your wp-content directory, where any errors or notices will be logged. Afterward, you can access this file and open it with any text editor to review the recorded events. If you could share the relevant portions of the log here via a service like Pastebin, it would be extremely helpful for us to pinpoint the issue and assist you further.

    Thread Starter loyukfai

    (@loyukfai)

    I inserted the 3 lines into wp-config.php but no log was produced. ??

    Plugin Support vupdraft

    (@vupdraft)

    Hi ,

    The log is normally in the root of your site, it will be called something like error_log

    Thread Starter loyukfai

    (@loyukfai)

    Never mind, I re-installed the plug-in and it seems everything is fine now. Thanks a lot!

    • This reply was modified 1 week, 2 days ago by loyukfai.
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.