Title: Facebook Conversion API Cache Problem on WordPress
Last modified: May 21, 2021

---

# Facebook Conversion API Cache Problem on WordPress

 *  Resolved [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/)
 * Dear Support,
 * We have a caching issue with the Litespeed cache plugin and the FB Conversion
   API (i.e. server side events).
 * We have implemented the FB pixel via the WP-plugin PixelYourSite, both as a browser
   pixel and as a server side event (conversion API).
 * The issue we experience is described in this video:
    [https://www.youtube.com/watch?reload=9&v=YH6ve7qj1hw](https://www.youtube.com/watch?reload=9&v=YH6ve7qj1hw)
 * You can easily replicate the issue by loading our website per the instructions
   in the video above:
    _[ redundant link removed ]_
 * How do suggest that we solve this problem where it is specifically related to
   the Litespeed cache plugin and de-duplicating FB events?
 * I look forward to your help with this issue.
 * Pairfum London
    -  This topic was modified 5 years, 7 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
    -  This topic was modified 5 years ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffacebook-conversion-api-cache-problem-on-wordpress%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13471347)
 * Hi,
 * Could you please provide the report number ?
 * You can get it in toolbox -> report -> click “send to LiteSpeed”
 * Best regards,
 *  Thread Starter [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13472913)
 * Dear [@qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Many thanks for your reply and instructions. They were very easy to follow.
 * Here is the report number:
    LiteSpeed Report Report number: ZTSMUIQC Report date:
   09/30/2020 09:08:32
 * I look forward to hearing back from you.
 * Kind regards,
 * Pairfum London
 *  [serwer20](https://wordpress.org/support/users/serwer20/)
 * (@serwer20)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13475171)
 * Hi! I also need solution for this, please update this topic if You figure it 
   out 👀 🙂
 * Best!
 *  Thread Starter [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13475530)
 * Dear [@serwer20](https://wordpress.org/support/users/serwer20/)
 * Many thanks for lending your support to this issue.
 * We suspect most e-commerce website that use Litespeed and FB tracking (pixel &
   API) will experience this issue.
 * Kind regards,
 * Pairfum London
 *  Thread Starter [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13500202)
 * Dear [@qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Would you have an update for us?
 * Or, … even better, do you already have a solution?
 * With kind regards,
 * Pairfum London
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13506229)
 * Hi,
 * Apologize for late response.
 * could you please try disable JS push and JS defer, purge all ?
 * Best regards,
 *  Thread Starter [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13507547)
 * Dear [@qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Many thanks for the suggestion.
 * We have tried it but sadly it did not make any difference, the event ID stays
   the same.
 * As per your instructions:
    – we disabled JS push & defer via Litspeed Cache >
   Page Optimisation > JS HTTP/2 Push off & Load JS Deferred off – we then cleared
   the cache via Litespeed Cache > Toolbox > Empty Entire Cache – we also cleared
   the entire Cloudflare Cache, – last we ensured that the browser cache was clear
   and checked with the FB Pixel Helper in three different browsers: Chrome, Opera,
   New Edge (Chromium)
 * We found that the event ID was the same in all three browsers.
 * Would you like me to send you a new report number so you can investigate further?
 * Many thanks for your help with this problem.
 * Kind regards,
 * Pairfum London
 *  Thread Starter [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13508850)
 * Dear [@qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Another quick update:
 * We switched-off the Litespeed Cache plugin and the problem was solved.
 * We then tried the WP-Rocket Caching plugin and with this caching plugin we did
   not experience the issue.
 * Hence, the issue is quite clearly associated with the Litespeed Cache plugin.
 * Kind regards,
 * Pairfum London
 *  Thread Starter [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13533463)
 * Dear [@qtwrk](https://wordpress.org/support/users/qtwrk/)
 * I was wondering whether excluding Facebook tracking from being cached might be
   a solution.
 * This is what we have in mind:
    [https://i.imgur.com/cbFFgrx.png](https://i.imgur.com/cbFFgrx.png)
 * These are the mentions of Facebook that we find on the ‘waterfall’ when we run
   our site through speed testing tools, e.g. Pingdome, WebPageTest.org.
 * Could this work?
 * Kind regards,
 * Pairfum London
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13535914)
 * Hi,
 * No , that is for your page’s URL
 * could you please try reset to default setting and see if it works ?
 * Best regards,
 *  Thread Starter [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * (@pairfumlondon)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13537334)
 * Dear [@qtwrk](https://wordpress.org/support/users/qtwrk/)
 * The author of the plugin PixelYourSite found a way to solve this issue for caching
   plugins like Litespeed by using Ajax.
 * We found that this solution works for our website.
 * Here is a screenshot to show this setting:
 * > [OnPaste.20201015-101126](https://imgur.com/ebNOwDP)
 * Many thanks for your help on this.
 * With kind regards,
 * Pairfum London

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Facebook Conversion API Cache Problem on WordPress’ is closed to new 
replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [browser](https://wordpress.org/support/topic-tag/browser/)
 * [event](https://wordpress.org/support/topic-tag/event/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [server](https://wordpress.org/support/topic-tag/server/)
 * [side](https://wordpress.org/support/topic-tag/side/)

 * 11 replies
 * 3 participants
 * Last reply from: [pairfumlondon](https://wordpress.org/support/users/pairfumlondon/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/facebook-conversion-api-cache-problem-on-wordpress/#post-13537334)
 * Status: resolved