Caching Conflicts with Multisite / Domain Access

Created on 31 March 2020, about 5 years ago
Updated 23 January 2025, 2 months ago

In the function sharethis_block_contents, a check is performed to see if the block has been cached at the per-page level.

But, the $cache_name variable does not use the full URL, only the path.

This means if a single node is visible on two domains, the block -- on both domains -- shares from whichever domain that node was first seen on since the last cache.

The attached patch wraps the call to current_path() with a call to url();

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mw4ll4c3

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024