ShahiLanding

Cache and Plugin Conflicts

This guide helps you troubleshoot caching issues and conflicts with other WordPress plugins and themes.

Caching Plugin Conflicts

Symptom

Landing pages not updating, displaying incorrectly, or analytics not working due to caching.

Common Caching Plugins

WP Super Cache

Problem: Landing page changes don’t appear, cached version shown.

Solution 1 – Clear Cache:

  1. Go to Settings → WP Super Cache
  2. Click Delete Cache button
  3. Visit landing page to verify changes
  4. Solution 2 – Exclude Landing Pages:

  5. Go to Settings → WP Super Cache → Advanced
  6. Find Rejected URIs section
  7. Add landing page URLs (one per line):
  8. `
    /landing-page/
    /lp/
    /offer/
    `

  9. Or exclude all ShahiLandin pages:
  10. `
    /shahi-landing/
    `

    Solution 3 – Disable for Dynamic Content:

  11. Advanced tab → Don’t cache pages for known users (check)
  12. Advanced tab → Don’t cache pages with GET parameters (check if using experiments)
  13. W3 Total Cache

    Problem: Landing pages cached with wrong content, A/B tests not working.

    Solution 1 – Clear All Caches:

  14. Go to Performance → Dashboard
  15. Click Empty All Caches
  16. Test landing page
  17. Solution 2 – Exclude Pages:

  18. Go to Performance → Page Cache → Advanced
  19. Find Never cache the following pages
  20. Add landing page patterns:
  21. `
    landing-page/*
    lp/*
    shahi-landing/*
    `

    Solution 3 – Exclude Query Strings:

  22. Page Cache → Advanced → Accepted query strings
  23. Add experiment parameters:
  24. `
    variant
    experiment
    shahilandin_variant
    `

    Solution 4 – Disable for Logged-in Users:

  25. Page Cache → General → Uncheck Cache requests for logged-in users
  26. WP Rocket

    Problem: Aggressive optimization breaks landing page features.

    Solution 1 – Clear Cache:

  27. Click WP Rocket in admin bar
  28. Click Clear Cache
  29. Solution 2 – Exclude Landing Pages:

  30. Go to Settings → Advanced Rules
  31. Never Cache URL(s):
  32. `
    /landing-page/(.*)
    /lp/(.*)
    /shahi-landing/(.*)
    `

    Solution 3 – Disable JavaScript Optimization:

  33. File Optimization tab
  34. Excluded JavaScript Files:
  35. `
    /wp-content/plugins/ShahiLandin/assets/js/(.*)
    `

    Solution 4 – Disable Lazy Loading:

  36. Media tab → Images
  37. Excluded Images or Iframes:
  38. `
    .landing-hero
    [data-shahilandin-image]
    `

    LiteSpeed Cache

    Problem: Landing pages served from cache, bypass cache not working.

    Solution 1 – Clear Cache:

  39. LiteSpeed Cache menu → Purge All
  40. Or click Purge All in admin bar
  41. Solution 2 – Exclude Landing Pages:

  42. Go to LiteSpeed Cache → Cache → Excludes
  43. Do Not Cache URIs:
  44. `
    /landing-page/
    /lp/
    shahi-landing
    `

    Solution 3 – Exclude Query Strings:

  45. Cache → Excludes → Do Not Cache Query Strings:
  46. `
    variant
    shahilandin_variant
    experiment
    `

    Solution 4 – Set Cache TTL:

  47. Cache → Cache → Cache TTL for Pages
  48. Set lower value (e.g., 600 seconds instead of 604800)
  49. Object Cache Issues

    Redis/Memcached

    Problem: Landing page data cached in object cache causes stale content.

    Solution:

  50. ShahiLandin uses WordPress transients
  51. Flush object cache:
  52. `bash

    For Redis Object Cache plugin

    wp cache flush

    Or via WP-CLI

    wp transient delete-all
    `

  53. Exclude ShahiLandin transients from object cache:
  54. `php
    // Add to wp-config.php
    $globalgroups = [‘shahilandincache’];
    wpcacheaddglobalgroups($global_groups);
    `

    CDN Conflicts

    Cloudflare

    Problem: Landing page updates don’t appear for visitors, cached at edge.

    Solution 1 – Purge Cache:

  55. Log into Cloudflare dashboard
  56. Caching → Purge Everything
  57. Or purge specific URL
  58. Solution 2 – Create Page Rule:

  59. Page Rules → Create Page Rule
  60. URL: yoursite.com/landing-page*
  61. Setting: Cache LevelBypass
  62. Save and deploy
  63. Solution 3 – Reduce Cache TTL:

  64. Caching → Configuration
  65. Browser Cache TTL: Set to 1 hour
  66. Edge Cache TTL: Use Respect Existing Headers
  67. Solution 4 – Disable Auto Minify for Landing Pages:

  68. Can break custom CSS/JS
  69. Speed → Optimization
  70. Auto Minify → Uncheck JavaScript and CSS
  71. Or use page rule to disable per URL
  72. Other CDNs (BunnyCDN, KeyCDN, AWS CloudFront)

    General Solutions:

  73. Set shorter TTL for landing pages
  74. Use cache invalidation API when updating
  75. Add cache busting parameters: ?v=timestamp
  76. Configure proper cache headers in WordPress
  77. Plugin Conflicts

    Page Builder Conflicts

    Elementor

    Problem: Cannot edit landing page with Elementor, or Elementor overrides ShahiLandin.

    Solution:

  78. ShahiLandin and Elementor can coexist
  79. Don’t edit same page with both:
  80. – Use Elementor OR ShahiLandin per page
    – Not both simultaneously

  81. To disable Elementor for landing pages:
  82. `php
    // Add to theme’s functions.php
    addfilter(‘elementor/frontend/buildercontentdisplay’, function($display, $postid) {
    if (getposttype($postid) === ‘shahilanding’) {
    return false; // Disable Elementor for landing pages
    }
    return $display;
    }, 10, 2);
    `

    Divi Builder

    Problem: Divi theme interferes with landing page display.

    Solution:

  83. Use Canvas Mode for landing pages:
  84. – Edit landing page
    – Template → Canvas (Full Isolated)

  85. Disable Divi builder for landing pages:
  86. `php
    addfilter(‘etbuildershouldloadframework’, function($shouldload) {
    if (issingular(‘shahilanding’)) {
    return false;
    }
    return $should_load;
    });
    `

    Beaver Builder

    Problem: Beaver Builder and ShahiLandin conflict on same page.

    Solution:
    Similar to above – use one or the other per page:
    `php
    addfilter(‘flbuilderrendermodule’, function($render, $module) {
    if (getposttype() === ‘shahi_landing’) {
    return false;
    }
    return $render;
    }, 10, 2);
    `

    Form Plugin Conflicts

    Contact Form 7

    Problem: Contact Form 7 shortcode not working in landing page.

    Solution 1 – Ensure Scripts Load:
    ShahiLandin’s Canvas mode may not load CF7 scripts.

  87. Add to landing page HTML:
  88. `html

    `

    Solution 2 – Manually Load Scripts:
    `php
    // Add to functions.php
    addaction(‘wpenqueue_scripts’, function() {
    if (issingular(‘shahilanding’)) {
    if (functionexists(‘wpcf7enqueue_scripts’)) {
    wpcf7enqueuescripts();
    }
    if (functionexists(‘wpcf7enqueue_styles’)) {
    wpcf7enqueuestyles();
    }
    }
    });
    `

    Gravity Forms

    Problem: Gravity Forms not displaying or submitting correctly.

    Solution:

  89. Gravity Forms usually works without issues
  90. If form not displaying:
  91. `php
    // Force load Gravity Forms on landing pages
    addfilter(‘gformforcehooks’, function($forcehooks) {
    if (issingular(‘shahilanding’)) {
    return true;
    }
    return $force_hooks;
    });
    `

    WPForms

    Problem: WPForms styles conflict with landing page design.

    Solution:

  92. Disable WPForms styling:
  93. `php
    addfilter(‘wpformsmodernformfields’, ‘_returnfalse’);
    `

  94. Or add custom CSS to override:
  95. `css
    .wpforms-container {
    / Your custom styles /
    }
    `

    SEO Plugin Conflicts

    Yoast SEO

    Problem: Yoast meta boxes clutter landing page editor.

    Solution:

  96. Hide Yoast for landing pages:
  97. `php
    addaction(‘addmeta_boxes’, function() {
    removemetabox(‘wpseometa’, ‘shahilanding’, ‘normal’);
    }, 100);
    `

  98. Or keep but collapse by default:
  99. – Screen Options (top right) → Uncheck Yoast boxes

    Rank Math

    Problem: Rank Math redirects or canonical URLs interfere.

    Solution:

  100. Exclude landing pages from Rank Math:
  101. `php
    addfilter(‘rankmath/frontend/disable’, function($disable) {
    if (issingular(‘shahilanding’)) {
    return true;
    }
    return $disable;
    });
    `

    Security Plugin Conflicts

    Wordfence

    Problem: Wordfence firewall blocks landing page tracking or AJAX requests.

    Solution 1 – Whitelist Landing Pages:

  102. Go to Wordfence → Firewall → Manage Rate Limiting
  103. Add landing page URLs to whitelist
  104. Solution 2 – Allow Analytics Endpoints:

  105. Firewall → All Options → Whitelisted URLs:
  106. `
    /wp-json/shahilandin/v1/view
    /wp-json/shahilandin/v1/conversion
    `

    Solution 3 – Disable for Logged-in Admins:

  107. Won’t affect most visitors
  108. Wordfence → Login Security → Uncheck Enforce on administrators
  109. Sucuri Security

    Problem: Sucuri blocks HTML import or asset mirroring.

    Solution:

  110. Sucuri Firewall → Settings → Whitelist IP
  111. Add your server’s IP address
  112. Or temporarily disable Sucuri for import:
  113. – Deactivate plugin
    – Import landing page
    – Reactivate Sucuri

    iThemes Security

    Problem: iThemes blocks REST API requests or file uploads.

    Solution:

  114. Security → Settings → REST API
  115. Ensure REST API is not completely disabled
  116. Or whitelist ShahiLandin endpoints:
  117. `php
    add_filter(‘itsec-filter-whitelisted-ips’, function($whitelisted) {
    if (isset($SERVER[‘REQUESTURI’]) &&
    strpos($SERVER[‘REQUESTURI’], ‘/shahilandin/’) !== false) {
    $whitelisted[] = $SERVER[‘REMOTEADDR’];
    }
    return $whitelisted;
    });
    `

    Performance Optimization Plugin Conflicts

    Autoptimize

    Problem: Autoptimize breaks landing page JavaScript or CSS.

    Solution 1 – Exclude ShahiLandin Assets:

  118. Settings → Autoptimize → JS, CSS & HTML
  119. Exclude scripts from Autoptimize:
  120. `
    shahilandin-analytics, shahilandin-admin
    `

  121. Exclude CSS from Autoptimize:
  122. `
    shahilandin
    `

    Solution 2 – Disable Inline CSS Deferral:

  123. CSS Options → Inline all CSS (uncheck)
  124. This prevents critical landing page CSS from being deferred
  125. Asset CleanUp

    Problem: Asset CleanUp removes necessary scripts from landing pages.

    Solution:

  126. Go to Asset CleanUp → Settings
  127. Post Types → Find Landing Pages (shahi_landing)
  128. Load Exception → Check all ShahiLandin scripts/styles
  129. Or disable Asset CleanUp for landing pages entirely
  130. WP-Optimize

    Problem: WP-Optimize minification breaks landing pages.

    Solution:

  131. WP-Optimize → Minify → Exclude
  132. Exclude from minification:
  133. `
    shahilandin
    analytics
    `

    Multilingual Plugin Conflicts

    WPML

    Problem: Landing pages not translating or wrong language displayed.

    Solution:

  134. Register landing page post type with WPML:
  135. `php
    addfilter(‘wpmloverrideistranslatedposttype’, function($override, $type) {
    if ($type === ‘shahi_landing’) {
    return true;
    }
    return $override;
    }, 10, 2);
    `

  136. Configure translation:
  137. – WPML → Settings → Post Types
    – Enable Landing Pages
    – Set to Translatable

    Polylang

    Problem: Language switcher doesn’t work on landing pages.

    Solution:
    `php
    // Register post type with Polylang
    addfilter(‘pllgetposttypes’, function($post_types) {
    $posttypes[‘shahilanding’] = ‘shahi_landing’;
    return $post_types;
    });
    `

    Theme Conflicts

    Common Theme Issues

    Problem 1: Theme Styles Override Landing Page

    Solution:
    Use Canvas Mode to bypass theme entirely:

  138. Edit landing page
  139. Template → Canvas (Full Isolated)
  140. Update page
  141. Problem 2: Theme JavaScript Errors

    Symptom: Theme JS conflicts with landing page scripts, console shows errors.

    Solution:

  142. Use Canvas Mode (loads minimal WordPress, skips theme)
  143. Or disable theme scripts for landing pages:
  144. `php
    addaction(‘wpenqueue_scripts’, function() {
    if (issingular(‘shahilanding’)) {
    // Dequeue theme scripts
    wpdequeuescript(‘theme-main-script’);
    wpdequeuescript(‘theme-custom’);
    }
    }, 100);
    `

    Problem 3: Theme Adds Unwanted Elements

    Symptom: Theme adds share buttons, author bio, breadcrumbs to landing page.

    Solution:

  145. Canvas Mode – cleanest solution
  146. Or hide via CSS:
  147. `css
    .shahi-landing .share-buttons,
    .shahi-landing .author-bio,
    .shahi-landing .breadcrumbs {
    display: none !important;
    }
    `

    Premium Theme Conflicts

    Avada Theme

    Solution:
    `php
    add_action(‘wp’, function() {
    if (issingular(‘shahilanding’)) {
    removeaction(‘wphead’, ‘avadasetpost_header’, 10);
    removeaction(‘wpfooter’, ‘avadarenderfooter’, 10);
    }
    });
    `

    Divi Theme

    Already covered above – use Canvas Mode or disable Divi builder for landing pages.

    Astra Theme

    Solution:
    `php
    addfilter(‘astrapage_layout’, function($layout) {
    if (issingular(‘shahilanding’)) {
    return ‘page-builder’; // Full width, no sidebar
    }
    return $layout;
    });
    `

    Identifying Plugin Conflicts

    Systematic Conflict Testing

    Step 1 – Deactivate All Plugins (Except ShahiLandin):

  148. Go to Plugins page
  149. Select all plugins EXCEPT ShahiLandin
  150. Bulk Actions → Deactivate
  151. Test landing page – does issue persist?
  152. Step 2 – If Issue Resolved:

  153. Reactivate plugins one by one
  154. Test after each activation
  155. When issue returns, you’ve found the conflicting plugin
  156. Step 3 – If Issue Persists:

  157. Reactivate all plugins
  158. Switch to default theme (Twenty Twenty-Four)
  159. Test again
  160. If resolved, conflict is with your theme
  161. Using Health Check Plugin

    Better Method – Test without affecting site visitors:

  162. Install Health Check & Troubleshooting plugin
  163. Go to Tools → Site Health → Troubleshooting
  164. Click Enable Troubleshooting Mode
  165. Only YOU see plugins disabled, visitors see normal site
  166. Selectively reactivate plugins to find conflict
  167. Click Disable Troubleshooting Mode when done
  168. Browser and JavaScript Conflicts

    Problem 1: Ad Blockers

    Symptom: Analytics not tracking, scripts blocked.

    Solution:

  169. ShahiLandin uses first-party tracking (usually not blocked)
  170. If blocked, whitelist your site in ad blocker
  171. For visitors: Can’t force them to disable, but most won’t have issues
  172. Problem 2: Privacy Extensions

    Symptom: Ghostery, Privacy Badger, uBlock Origin blocking features.

    Solution:

  173. Test in incognito/private mode without extensions
  174. For your own testing, whitelist your site
  175. For visitors: Accept that heavily protected users may have limited tracking
  176. Problem 3: Content Security Policy (CSP)

    Symptom: Browser blocks inline scripts, CSP violation in console.

    Solution:

  177. If your site enforces CSP, add ShahiLandin to whitelist:
  178. `html

    `

  179. Or configure CSP header in server config to allow inline scripts
  180. Debug Mode for Conflicts

    Enable WordPress Debug

    `php
    // Add to wp-config.php
    define(‘WP_DEBUG’, true);
    define(‘WPDEBUGLOG’, true);
    define(‘WPDEBUGDISPLAY’, false);
    define(‘SCRIPT_DEBUG’, true); // Loads unminified scripts
    `

    Enable ShahiLandin Debug

    `php
    // Add to wp-config.php
    define(‘SHAHILANDIN_DEBUG’, true);
    `

    Check Debug Log

  181. View log file at /wp-content/debug.log
  182. Look for:
  183. – PHP errors
    – ShahiLandin warnings
    – Plugin conflict notices

  184. Filter for relevant errors:
  185. `bash

    View ShahiLandin errors only

    grep -i “shahilandin” wp-content/debug.log

    View recent errors

    tail -f wp-content/debug.log
    `

    Best Practices to Avoid Conflicts

  186. Keep plugins updated – Many conflicts fixed in updates
  187. Use Canvas Mode for full control over landing pages
  188. Exclude landing pages from caching where dynamic features needed
  189. Test with default theme first to isolate theme issues
  190. Use Health Check plugin for safe conflict testing
  191. Disable conflicting plugins only on landing pages (if possible)
  192. Document conflicts you discover for future reference
  193. Contact plugin authors if persistent conflicts occur
  194. Regular backups before testing conflict resolutions
  195. Staging site for testing without affecting production
  196. Getting Help

    If conflicts persist after troubleshooting:

  197. Provide detailed information:
  198. – Conflicting plugin name and version
    – Theme name and version
    – Steps to reproduce conflict
    – Error messages (exact text)

  199. Export debug log:
  200. – Copy relevant portions of debug.log
    – Include ShahiLandin-related errors

  201. Site Health Export:
  202. – Go to Tools → Site Health → Info
    – Click Copy site info to clipboard
    – Include in support request

  203. Screenshots:
  204. – Active plugins list
    – Error messages
    – Console errors (F12)

    Related Articles:

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket