Where’s the cache and how can I manipulate it?
-
Where does Smart Slider 3 store its cache, and how can I hook into it on page load?
I have a wordpress site that’s served by two distinct domains: a normal/clearnet domain and a .onion domain.
The .onion site is essentially the exact same as the clearnet domain, except that I have a function with some hooks that convert links on the site from the clearnet domain to the .onion domain. This prevents users on the .onion site from clicking a link that ends-up taking them back to the clearnet site.
This works fine for all my plugins, except Smart Slider 3, which occasionally (somehow) caches the photos from the .onion site such that subsequent visitors to the clearnet site have broken image links because they cannot view the .onion site.
The way that my wordpress site switches between domains is by looping through all of the relevant wordpress options (eg a subset of wp_load_alloptions()) and runs add_filter() against the relevant options and a function I wrote that searches for a regular expression including the clearnet domain (eg “example.com”) and replaces it with the .onion domain (eg “m7qd5n2qcdxnsduwglff3k2moctrvodtqgzag3n6isrp7xj7v3nhzmad.onion”)
* https://tech.michaelaltfield.net/2021/02/12/wordpress-multisite-tor-alias/
Unfortunately, this isn’t working with Smart Slider 3. I suspect because it’s caching the domains somehow in a place that’s not accessible as a wp_option.
Where does Smart Slider 3 actually store its cache, and how can I manipulate it as-needed on page-load?
- The topic ‘Where’s the cache and how can I manipulate it?’ is closed to new replies.