[bd] Cache 1.3.2

Faster and faster.

  1. ehsan

    ehsan New Member

    Hi,
    Thanks for this great addon.
    Would you please help me on this 2 questions?

    1. Does this addon use memcached as the storage? I was checking my memcached status and found no signs of this addon using any part of cache.
    2. Regarding AMP feature, How is it possible to specify a special part of a template for not being rendered in amp version?

    Regards,
     
  2. ehsan

    ehsan New Member

    I am trying to use something like this in "post" template but it is not working. any idea?
    Code:
    <xen:if is="{$templateName} != 'bdcache_amp_thread_view'">
    some content for not-AMP pages
    </xen:if>
     
    1. ehsan

      ehsan New Member

      ehsan @ehsan @xfrocks can you help me on this?
       
    2. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @ehsan That variable is not available, I think you can check for "{$bdCache_isAmp}" instead.
       
      ehsan likes this.
      1
    3. ehsan

      ehsan New Member

      ehsan @xfrocks Would you please make an example of that. for usage inside a template and remove some content from amp pages (for amp verification)
      Thanks
       
    4. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @ehsan In another add-on of mine which render social buttons, it checks for amp mode and switch to use amp-social-share tag, something like this:

      Code:
      <xen:if is="{$bdCache_isAmp}">
          <amp-social-share type="facebook" data-url="{$url}" data-attribution="{$xenOptions.facebookAppId}">
          </amp-social-share>
      </xen:if>
      
       
  3. af123

    af123 New Member

    #221 af123, Dec 6, 2016
    Last edited: Dec 6, 2016
    Since installing the addon I'm getting lots of file not found errors in my log for the amp logo. Looks like the path is not anchored. It definitely is on this forum so I wonder what's wrong with me installation.

    Code:
    2016/12/06 15:13:29 [error] 21687#1: *339124 open() ".../forum/threads/no-signal-or-weak-signal-message.2311/styles/default/bdCache/amp_logo.png" failed (2: No such file or directory), client: xx.xx.xx.xx, server: hummy.tv, request: "GET /forum/threads/no-signal-or-weak-signal-message.2311/styles/default/bdCache/amp_logo.png HTTP/1.1", host: "hummy.tv"
    
    Anyone have any ideas?

    Thanks.
     
    1. ehsan

      ehsan New Member

      ehsan @af123 Hi
      Just upload a logo here:
      styles/default/bdCache/amp_logo.png

      Or you may change it to your current logo in "bdcache_amp_header" template.
       
  4. MFTeam

    MFTeam New Member

    After install i have to change anything in cloudflare?

    I have some option to test if everything is installed ok?
     
  5. MFTeam

    MFTeam New Member

    After install i have to change anything in cloudflare?
    M


    I have some option to test if everything is installed ok?
    Hi have the same problem.
    In that folder have a logo amp_logo.png, but the problem is path directory after i make a test show the path is wrong.

    After i submit this to the https://tools.pingdom.com
    https://www.mydomain.com/threads/thread.199625/?amp=199625

    Give-me one error :
    The following requests are returning 404/410 responses. Either fix the broken links, or remove the references to the non-existent resources.

    After i check i see this path error:
    https://www.mydomain.com/threads/thread.199625/styles/default/bdCache/amp_logo.png

    How to fix this?
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @MFTeam The image path is built with imagePath style property. Do you have that setup properly in your style?
       
    2. MFTeam

      MFTeam New Member

      #230 MFTeam, Feb 10, 2017
      Last edited: Feb 10, 2017
      MFTeam @xfrocks Yes my style is default xenforo.
      Code:
      https://www.mydomain.com/threads/thread.199625/styles/default/bdCache/amp_logo.png
      The problem is that path, the correct path is
      Code:
      https://www.mydomain.com/styles/default/bdCache/amp_logo.png
      Example image already default xenforo.
      Code:
      https://www.mydomain.com/styles/default/xenforo/gradients/form-button-white-25px.png
      Maybe is the /styles/default/xenforo/ ??

      That user have the same problem in the path.
      How to change this?
       
    3. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @MFTeam The path is built in "bdcache_amp_header" template with:

      Code:
      @imagePath/bdCache/amp_logo.png
      We probably need to have a better way to build up the url.
       
    4. rimesia

      rimesia New Member

      rimesia @xfrocks AMP style goes crazy when there is an Guest message. It does not show guest message and their username.

      amp.jpg

      Furthermore , if you have a bbcode HTML replacement with <img src""> , AMP gives error because addon doesn't change them to <amp-img src="">.
       
      xfrocks likes this.
      1
  6. MFTeam

    MFTeam New Member

    In the chrome console show this:

    Code:
    <amp-img src="styles/default/bdCache/amp_logo.png" title="Domain" width="600" height="60" layout="fixed" class="i-amphtml-element i-amphtml-layout-fixed i-amphtml-layout-size-defined i-amphtml-layout amp-notsupported" style="width: 600px; height: 60px;">
    <img title="Domain" class="i-amphtml-fill-content -amp-fill-content i-amphtml-replaced-content -amp-replaced-content -amp-ghost" src="styles/default/bdCache/amp_logo.png"></amp-img>
    
    
     
  7. MFTeam

    MFTeam New Member

    Ok, unsupported.

    Uninstalled!
     
  8. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Can you test guest post in default style? It seems to work on our tests.
    Also, we have this custom bb code:

    Screen Shot 2017-03-01 at 1.59.29 PM.png

    And this post:

    It got converted into this in AMP version:

    Code:
    <amp-img src="http://attachments.xfrocks.com/2017/02/1542_10d802cf1686c93963084a0b03bca0b1.jpg" width="798" height="444" layout="responsive" ></amp-img>
    Hmm...
     
  9. dbembibre

    dbembibre New Member

    Hi @xfrocks i download because i see that the plugin is compatible from xf 1.2, im in xenforo 1.3.10, but when i try to install i receive the following error:
    Exist one specific version for xenforo 1.3.10 ?

    Code:
    Server Error
    
    XenForo 1.4.0+ is required.
    
    bdCache_Installer::installCustomized() in bdCache/Installer.php at line 30

    Thanks a lot
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @dbembibre Looks like a bug from our build, I have released a new version (v1.2.3) which should allow you to continue on XenForo v1.3. Can you please try again? Sorry for the confusion.
       
      dbembibre likes this.
      1
    2. ENF

      ENF New Member

      ENF @xfrocks Looks like this version has lost the AdminCP link to get to the Addon settings. (no clickable link on the Addon title)
       
    3. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @ENF Hmm, I'm pretty sure our add-ons don't have add-on title links.
       
    4. ENF

      ENF New Member

      ENF @xfrocks You're right; wasn't paying close enough attention. Sorry!
       
      xfrocks likes this.
      1
    5. dbembibre

      dbembibre New Member

      dbembibre @xfrocks Strange because still getting the 1.4+ required

      Installed without problems, i see the line 30 from Installer.php corrected. :)

      Thanks a lot
       
      xfrocks likes this.
      1
  10. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    dbembibre likes this.
  11. dbembibre

    dbembibre New Member

    The plugin work fine.
    The only problem that i found is that when i click the link "Cache TTL" that correspond with URL Cache TTL: Predeterminado i receive the error
    The following error occurred:
    You do not have permission to view this page or perform this action.

    Excuse my broken English.
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @dbembibre That link will check for admin manage option permission. Does your account have that permission?
       
    2. robeetech

      robeetech New Member

      robeetech @xfrocks I'm having the same issue. Where is this option found? I am a Super Admin

      edit: Found the page, and have confirmed I have the manage option checked. I'm on 1.5.22
       
  12. kontrabass

    kontrabass New Member

    @xfrocks thank you for continuing to put effort into this addon. The AMP rendering is crucial, and we're starting to see an uptick in organic google acquisitions that I'm positive is a direct result.

    Has anyone successfully put adsense/dfp ads into their AMP pages? Is it possible?
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @kontrabass Thank you. And it is possible and quite simple actually. Basically you just need to put this component into your page https://www.ampproject.org/docs/reference/components/ads/amp-ad
       
  13. Gizzymomo

    Gizzymomo New Member

    Doesnt install..

    Get this error

    Callback bdCache_Listener::load_class_4f477c58235ffb475271e2521731d700 is invalid (Invalid Method).
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @Gizzymomo Please double check your uploads and reset opcache if any.
       
  14. maszd

    maszd New Member

  15. Lee Burnett

    Lee Burnett New Member

    #250 Lee Burnett, Mar 17, 2017
    Last edited: Mar 18, 2017
    @xfrocks - thanks for the excellent cache system, adding AMP is a huge bonus.

    However, I have many AMP pages that are getting this validation error:

    Code:
    Any ideas on what is causing the error in the css file?
     
  16. rimesia

    rimesia New Member

    Can I have an answer about that ? I did try with default style it still does happen.
    Also , my bdcache file is bigger then 10gb now. Is it normal ?
     
    1. rimesia

      rimesia New Member

      rimesia @rimesia bdcache file now is bigger than 13 gb.
       
  17. Satix

    Satix New Member

    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

  18. xydrine

    xydrine New Member

    @xfrocks what is this "addon-bdCloudServerHelper.xml" addon which is at https://xfrocks.com/resources/bd-cache.8/history - the top most one - under 1.2.3b?

    Did I not read the instructions or something, or is that the wrong addon uploaded there (I see 1.2.3 is the actual bd cache addon)?

    Thanks!
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @xydrine It was indeed a mistake, we have removed the version. Sorry for the inconvenience.
       
Loading...