• Resolved JayTodd123

    (@jaytodd123)


    I have a few questions about cacheing. How does page cacheing affect this plugin? I’m using Litespeed cache at the moment. Is it the output of the plugin that gets cached such that the eBay listings shown on a page may become stale if the cached page is not purged and updated within a short period of time? If that is the case could edge side includes be used to cache the page but not the plugin output?

    Thanks!

    • This topic was modified 11 months ago by JayTodd123.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Arthur Yarwood

    (@arfa_)

    Hi,

    The situation you describe is something Fast eBay Listings can specifically manage via the ‘deferred loading’ setting (under the cosmetic & behaviour tab).

    When the Deferred Loading setting is not used, then listings may be cached as part of the page via plugins such as LiteSpeed.

    But, when deferred loading is enabled, only the Javascript stub to load listings is cached with the page, and so up-to-date listings will always be loaded asynchronously to the page load via Javascript.

    As such, the recommendation is to set ‘Deferred loading of listings’ to ‘Always’ if you use a page caching plugin, like Litespeed. This will ensure the eBay content shown remains fresh and the initial page loading will not be slowed by the query to eBay.

    Hope that helps!

    Arthur

    Plugin Author Arthur Yarwood

    (@arfa_)

    Assuming resolved, closing thread, let me know if you have any further questions.

    Thread Starter JayTodd123

    (@jaytodd123)

    I’ve been having issues with the plugin not showing results after 24 hours or so (they just don’t load) but I think I’ve narrowed it down to browser caching. I use Litespeed cache and when it’s set to cache in the users browser it seems to cause issues with Fast eBay Listings (FEL). I’ve turned it off and haven’t had problems yet. Hopefully it’s solved.

    I also noticed a PHP error regarding FEL:

    PHP 8.0 incompatibilities: FILE: cats/cat_chooser.php FOUND 1 ERRORS AND 0 WARNINGS AFFECTING 1 LINES 46 | ERROR | “$this” can no longer be used in a plain function or method since PHP 7.1.

    Not sure if it makes a difference or not but thought I’d pass it along.

    Plugin Author Arthur Yarwood

    (@arfa_)

    Hi Jay,

    I suspect this is related to the WordPress Nonce used for the deferred JS loading calls. This is a time-sensitive one-time token used by your WordPress site to verify the JS call for deferred loading is valid. If your page caching is retaining this after it has expired, it will cause the deferred loading JS call to fail.

    This is a common issue with page caching plugins and something I’m currently looking into a solution for.

    The PHP error you found is related to the category chooser feature used within the admin dashboard. This is a secondary logging bug, but is also related to a nonce validation error. Possibly due to dashboard pages left open in a browser longer than a day, or your page caching plugin is also caching admin dashboard pages too… I’ve fixed the error logging bug nonetheless.

    In summary, I should have some tweaks that will help these errors released later this week.

    Best regards,

    Arthur.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page Cacheing’ is closed to new replies.