Pagely Not Caching - by jobo9967 - on WordPress WooCommerce support

This topic has 6 replies, 2 voices, and was last updated 6 years, 9 months ago ago by Olga Barlow

  • Avatar: jobo9967
    jobo9967
    Participant
    March 2, 2018 at 18:01

    Hi there
    I have my site hosted with Pagely.
    They have their own caching plugin
    But it turns out that the site theme is causing problems with it.
    It’s not caching due to the cookies generated by the site.

    this is what I got from pagely support

    web121:/data/s3100/dom21266/httpdocs$ grep -R ‘session_start’ ./wp-content/
    ./wp-content/themes/xstore/framework/thirdparty/vendor/opauth/opauth/lib/Opauth/OpauthStrategy.php: session_start();
    ./wp-content/themes/xstore/framework/thirdparty/vendor/opauth/opauth/lib/Opauth/Opauth.php: session_start();
    ./wp-content/themes/xstore/framework/thirdparty/vendor/opauth/opauth/example/callback.php: session_start();
    ./wp-content/plugins/xl-woocommerce-sales-triggers/readme.txt:* Fixed: no-cache header getting send because of session_start.
    ./wp-content/plugins/woocommerce-jetpack/includes/class-wcj-eu-vat-number.php: session_start();
    ./wp-content/plugins/woocommerce-jetpack/includes/class-wcj-checkout-files-upload.php: session_start();
    ./wp-content/plugins/woocommerce-jetpack/includes/price-by-country/class-wcj-price-by-country-core.php: session_start();
    ./wp-content/plugins/woocommerce-jetpack/includes/class-wcj-multicurrency.php: session_start();
    ./wp-content/plugins/woocommerce-jetpack/includes/functions/wcj-functions-general.php: session_start();
    ./wp-content/plugins/invisible-recaptcha/includes/WordPress/Uploader.php: @session_start();
    ./wp-content/plugins/invoicebuilder/includes/fn.core.php: session_start();

    5 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 2, 2018 at 19:37

    Hello,

    First of all, if you check the list that you provided you’ll see that there are 4 plugins also in your list:
    xl-woocommerce-sales-triggers
    woocommerce-jetpack
    invisible-recaptcha
    invoicebuilder

    Can you also clarify what warnings or error do you get? Because I don’t understand what is wrong with these sessions.

    Regards

    Avatar: jobo9967
    jobo9967
    Participant
    March 2, 2018 at 19:53

    this is their response

    Hello,

    The easiest way to verify a site is hitting cache is by checking the headers via curl:

    $ curl -I https://www.ruralwifi.ie/
    HTTP/1.1 200 OK
    Date: Mon, 05 Feb 2018 19:22:25 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate
    Pragma: no-cache
    Link: <https://www.ruralwifi.ie/wp-json/&gt;; rel=”https://api.w.org/&#8221;, <https://www.ruralwifi.ie/&gt;; rel=shortlink
    Set-Cookie: PHPSESSID=qq7a1dt0bsithqkr5iujaj7vg1; path=/
    Set-Cookie: wp_woocommerce_session_76e6f70387ed4b793c7da70f123970ed=f2a5a9465c002e196fc6f51beb99fbcc%7C%7C1518031345%7C%7C1518027745%7C%7Ca5d66be2e1c03f24e9481e6d7cd2adb5; expires=Wed, 07-Feb-2018 19:22:25 GMT; Max-Age=172800; path=/
    Vary: Accept-Encoding, User-Agent
    X-User-Agent: standard
    X-Cache-Config: 0 0
    X-Cache-Status: MISS
    Server: Pagely Gateway/1.5.1

    As you can see, there are several cookies generated just on the home page. Any plugin or theme that creates a PHP session/cookie will break caching with either present. What that means is that potentially, a single page could have different content for each visitor and it would be dangerous to generate a page once and then serve it from cache to two different visitors. Thus, every single page request would not be cached and consume resources.

    However, having your site hit our cache layer is important since that is the first thing you’d want to make sure when optimizing your site for scalability.

    They say the site can’t take the advantage of their caching system due to these cookies.
    I know there arnother plugin cookies, but I Wanna start with the theme

    http://prntscr.com/ilzqn4

    5% is being cached only

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 3, 2018 at 12:05

    Hello,

    1) Theme files that you sent in the first message are related to FaceBook login option. If you don’t use it you should not have problems.
    2) Please, solve all the moments related to the plugins that you use. After that contact us again if you still have problems because of those files of out theme.
    3) wp_woocommerce_session_ – session created by WooCommerce plugin, WC plugin use it because when users add the products to cart they should have them in cart even when they navigate to another page. Other cache plugins, for example, W3 Total cache adds _wc_session_ to the list of Ignored Query Strings.

    Regards

    Avatar: jobo9967
    jobo9967
    Participant
    March 3, 2018 at 17:39

    I think the issues with those plugins were resolved now
    Btw
    I took random theme demo and run google test and the theme itself seem to be really slow

    https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2F8theme.com%2Fdemo%2Fxstore%2Felectronics%2F&tab=desktop

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 5, 2018 at 17:59

    Hello,

    We did not fully optimize all the images that we use for that version because it is demo only. So, the page size is larger than required.

    If you need help with optimization of your site you can contact WPKraken team.

    If you think that theme is very slow and does not suit your needs we are ready to give the refund.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.