Page sessions prevent caching

This topic contains 6 replies, has 2 voices, and was last updated by  Paul Henderson 7 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #275701

    Paul Henderson
    Expired Member
    Post count: 55

    I’m working with my hosting provider to improve performance and caching. Their support team has identified that geodirectory is not behaving well for the cache.

    Specifically they ask:
    “the geodirectory plugin. specifically those sessions in…
    wp-content/plugins/geodirectory/geodirectory-functions/geodir-class-session.php
    It might be worth asking geodirectory support if there is a way to have it not start a session on every page. Otherwise caching will be next to impossible.”

    Can you provide any advice here? Settings? docs?
    thanks!

    #275775

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Paul,

    What caching are you using?
    You can tell GD to not use sessions with one line of code, add this to geodirectory.php just under the version number define

    define("GEODIR_USE_PHP_SESSIONS", false);

    If that works for your needs i will create a small plugin that will disable it so it wont be lost on GD updates, just let me know.

    Thanks,

    Stiofan

    #275776

    Paul Henderson
    Expired Member
    Post count: 55

    Hi!

    It’s been a while. Geodirectory has been working great for me. Thanks for the continued updates.

    Regarding caching, yes, a plugin would be great. Can you send?

    I’ve moved my hosting to Pagely.com. They use something called PressCache.
    https://support.pagely.com/hc/en-us/articles/212827958-What-is-PressCACHE-and-how-does-it-work-

    They also have a PressCDN which is based in part on MaxCDN
    https://pagely.com/tech/

    Thanks
    Paul

    #275805

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    kool, let me know if that code helps.

    Stiofan

    #277234

    Paul Henderson
    Expired Member
    Post count: 55
    This reply has been marked as private.
    #277303

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    We use the same system as other big plugins like EDD and WOO, sessions (or database session) are used to store things like location, most caching plugin solutions can deal with this.
    I am not sure of the exact caching system the use but if you already have it maybe i can do some testing or if not maybe i can recommend some alternatives?

    Stiofan

    #277665

    Paul Henderson
    Expired Member
    Post count: 55
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket