• Resolved lodecallens

    (@lodecallens)


    When I Test URLs for Cache Status, I got the message URL not cached. Can’t find the exact reason. What is conflicting?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hey there @lodecallens,

    The reason you are not getting your URL cached is that your site is using PHP sessions. These sessions may contain personal information, so we do not store cached content when this kind of session is present. You can double-check your plugins and if any of them are using PHP sessions, the web page will not be cached.

    Kind regards,
    Stoyan

    @stoyangeorgiev,

    We have one plugin, Bookme Pro, that uses PHP Sessions but it only affects one (1) website page, not our entire domain. So, why is SG Optimizer penalizing our entire domain due to one page?

    If possible, please advise how to fix the above (via code snippet or similar) so we can Dynamically Cache all pages that are not affected by the plugin. Other than hiring a developer, a fix, hints, or tips are appreciated.

    Thank you!

    @stoyangeorgiev (et al),

    Update:

    Issue fixed as follows:

    (1) If you’re using WP Rocket

    Add the following filter to your functions.php file or via code snippets (plugin):

    add_filter('rocket_htaccess_mod_expires', '__return_false');

    (2) If you’re using a booking plugin such as Bookly or Bookme Pro

    Go to the plugin’s settings and deactivate any setting related to saving or remembering customers’ session (i.e., personal) information using cookies. Also, ensure the plugin is being used (via shortcode) only on the pages where it’s needed (e.g., booking page), not your entire website.

    Details: https://prnt.sc/11ehm6p

    Hope the above helps.

    Cheers!

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

The topic ‘URL not cached’ is closed to new replies.