LSWCP_TAG_PREFIX – bug when multisite
-
I think I found a bug in the plugin. Here the LSWCP_TAG_PREFIX parameter is created:
https://github.com/litespeedtech/lscache_wp/blob/ce40aeeeeeae579e0f98d4fe0dbb2f8ad9fb4af5/litespeed-cache.php#L108…but blog ID is not included in case of multisite:
https://github.com/litespeedtech/lscache_wp/blob/ce40aeeeeeae579e0f98d4fe0dbb2f8ad9fb4af5/src/tag.cls.php#L356C86-L356C86
https://github.com/litespeedtech/lscache_wp/blob/ce40aeeeeeae579e0f98d4fe0dbb2f8ad9fb4af5/src/purge.cls.php#L1043C59-L1043C59As a result, I am not able to clear the cache with this code:
$some_page_id = 902; @header("X-LiteSpeed-Purge: " . LSWCP_TAG_PREFIX . "_Po." . $some_page_id);
Because there is “805” under the LSWCP_TAG_PREFIX variable instead of:
8051 – for the main webpage
8052 – for the second webpage
8053 – for the third webpage
e.t.c.This issue has already come up in this thread:
https://www.ads-software.com/support/topic/purge-cache-only-for-selected-pages/
…but I decided to start a separate thread so as not to mix topics ??
- The topic ‘LSWCP_TAG_PREFIX – bug when multisite’ is closed to new replies.