[bd] Cache [Deleted]

Is it possible to store this files also in Memcached?

I have Memcached as XF backend Cache, but I don´t know what your add on store in Memcached.
Thebcaching benefit mostly because CSS is served as static file. Put it in memcached doesn't help. In fact XenForo does put CSS in memcached itself.

Another problem with this addon activ, sometimes the googlebot can not access pictures and Scripts.

"Vorübergehend nicht erreichbar" = " Temporarily Unavailable"

View attachment 91358

I have often tested it in the google webmaster tools. That is bad for rankings so I deaktivate this Addon.
That's strange. I'm not sure if it's related to the add-on?
 
Yes, no error with addon disabled. Sometimes you need 5 - 10 try's in the webmaster tools. See site as Google Bot.
 
@xfrocks - I received this error - it happened after Xenforo 1.4.4 upgrade, not sure if that has anything to do with it.

Code:
ErrorException: unserialize(): Error at offset 20 of 40960 bytes - library/bdCache/Model/Cache.php:237
Generated By: Unknown Account, Today at 10:58 AM
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(8, 'unserialize(): ...', '/home/admin/pub...', 237, Array)
#1 /home/admin/public_html/community/library/bdCache/Model/Cache.php(237): unserialize('a:7:{s:6:"outpu...')
#2 /home/admin/public_html/community/library/bdCache/Model/Cache.php(119): bdCache_Model_Cache->_internalData_load('dd54e49720aa5ee...')
#3 /home/admin/public_html/community/library/bdCache/Core.php(148): bdCache_Model_Cache->load('fc9d24c2923c109...', 1)
#4 /home/admin/public_html/community/library/bdCache/Listener.php(116): bdCache_Core->getCached()
#5 [internal function]: bdCache_Listener::front_controller_pre_dispatch(Object(XenForo_FrontController), Object(XenForo_RouteMatch))
#6 /home/admin/public_html/community/library/XenForo/CodeEvent.php(90): call_user_func_array(Array, Array)
#7 /home/admin/public_html/community/library/XenForo/FrontController.php(132): XenForo_CodeEvent::fire('front_controlle...', Array)
#8 /home/admin/public_html/community/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
  ["url"] => string(85) "http://mysite.com/community/threads/sphynx-cat-hcm-awareness-bracelet.6164/page-2"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Hi,

The files in interal_data/bdCache are reaching almost a gig in size.

I ran the cron manually, but all the files are still there. In fact, there are still files present from when I first installed the mod.

Can these be deleted manually without causing issue? Just delete all the folder+files within the bdCache folder?

Any idea why the cron may not be deleting the files when its running everyday?
 
Hi,

The files in interal_data/bdCache are reaching almost a gig in size.

I ran the cron manually, but all the files are still there. In fact, there are still files present from when I first installed the mod.

Can these be deleted manually without causing issue? Just delete all the folder+files within the bdCache folder?

Any idea why the cron may not be deleting the files when its running everyday?

@xfrocks - Any help on the above please :)
 
And another...would love to have support here with this paid add on...

Code:
ErrorException: unserialize(): Error at offset 20 of 73728 bytes - library/bdCache/Model/Cache.php:237
Generated By: Unknown Account, Today at 11:06 AM
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(8, 'unserialize(): ...', '/home/admin/pub...', 237, Array)
#1 /home/admin/public_html/community/library/bdCache/Model/Cache.php(237): unserialize('a:7:{s:6:"outpu...')
#2 /home/admin/public_html/community/library/bdCache/Model/Cache.php(119): bdCache_Model_Cache->_internalData_load('9b492bc7cf437bc...')
#3 /home/admin/public_html/community/library/bdCache/Core.php(148): bdCache_Model_Cache->load('cee3e1bb5b57d66...', 1)
#4 /home/admin/public_html/community/library/bdCache/Listener.php(116): bdCache_Core->getCached()
#5 [internal function]: bdCache_Listener::front_controller_pre_dispatch(Object(XenForo_FrontController), Object(XenForo_RouteMatch))
#6 /home/admin/public_html/community/library/XenForo/CodeEvent.php(90): call_user_func_array(Array, Array)
#7 /home/admin/public_html/community/library/XenForo/FrontController.php(132): XenForo_CodeEvent::fire('front_controlle...', Array)
#8 /home/admin/public_html/community/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
  ["url"] => string(85) "http://mysite.com/community/threads/sphynx-cat-names-i-thought-would-be-cool.198/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
And another...would love to have support here with this paid add on...

Code:
ErrorException: unserialize(): Error at offset 20 of 73728 bytes - library/bdCache/Model/Cache.php:237
Generated By: Unknown Account, Today at 11:06 AM
Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(8, 'unserialize(): ...', '/home/admin/pub...', 237, Array)
#1 /home/admin/public_html/community/library/bdCache/Model/Cache.php(237): unserialize('a:7:{s:6:"outpu...')
#2 /home/admin/public_html/community/library/bdCache/Model/Cache.php(119): bdCache_Model_Cache->_internalData_load('9b492bc7cf437bc...')
#3 /home/admin/public_html/community/library/bdCache/Core.php(148): bdCache_Model_Cache->load('cee3e1bb5b57d66...', 1)
#4 /home/admin/public_html/community/library/bdCache/Listener.php(116): bdCache_Core->getCached()
#5 [internal function]: bdCache_Listener::front_controller_pre_dispatch(Object(XenForo_FrontController), Object(XenForo_RouteMatch))
#6 /home/admin/public_html/community/library/XenForo/CodeEvent.php(90): call_user_func_array(Array, Array)
#7 /home/admin/public_html/community/library/XenForo/FrontController.php(132): XenForo_CodeEvent::fire('front_controlle...', Array)
#8 /home/admin/public_html/community/index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array(3) {
  ["url"] => string(85) "http://mysite.com/community/threads/sphynx-cat-names-i-thought-would-be-cool.198/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Looks like a conflict caused the cached file to be corrupted. You can fix this issue by deleting the directory internal_data/bdCache. This may cause some performance issue because pages need to be cached again. After sometime it should be good again. If you still encounter this issue after the delete, please start a conversation with me as I need to come in and check further.

Hi,

The files in interal_data/bdCache are reaching almost a gig in size.

I ran the cron manually, but all the files are still there. In fact, there are still files present from when I first installed the mod.

Can these be deleted manually without causing issue? Just delete all the folder+files within the bdCache folder?

Any idea why the cron may not be deleting the files when its running everyday?
The cron only cleans up css files. For page caches, it does not delete the files since any page can be access again any time. You can perform the delete yourself but it will grow up sooner or later anyway. The size of the cache files will be relative to the size of your websites (how many threads etc.)
 
Can't enable Defer JS for now as I'm using this new ad code:
Code:
<!-- BEGIN TAG - DO NOT MODIFY -->
<script type="text/javascript">
//<![CDATA[
epom_key = "1bebc3691b5ff78dabeaeb2a3c33e9c2";
epom_channel = "";
epom_code_format = "ads-sync.js";
epom_ads_host = "//www.adshost2.com";
epom_click = "";
epom_custom_params = {};

document.write("<script type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com\/js/show_ads.js'><\/script>");
//]]>
</script>
<!-- END TAG -->

With that code added on thread view and defer js is enabled, page got broken.

I even black listed:
show_ads
show_ads.js
adshost2

Still not fix, Any advice @xfrocks ?
 
Can't enable Defer JS for now as I'm using this new ad code:
Code:
<!-- BEGIN TAG - DO NOT MODIFY -->
<script type="text/javascript">
//<![CDATA[
epom_key = "1bebc3691b5ff78dabeaeb2a3c33e9c2";
epom_channel = "";
epom_code_format = "ads-sync.js";
epom_ads_host = "//www.adshost2.com";
epom_click = "";
epom_custom_params = {};

document.write("<script type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com\/js/show_ads.js'><\/script>");
//]]>
</script>
<!-- END TAG -->

With that code added on thread view and defer js is enabled, page got broken.

I even black listed:


Still not fix, Any advice @xfrocks ?
Please try this code instead of yours (I modified it a bit):

Code:
<!-- BEGIN TAG - DO NOT MODIFY -->
<script type="text/javascript">
//<![CDATA[
epom_key = "1bebc3691b5ff78dabeaeb2a3c33e9c2";
epom_channel = "";
epom_code_format = "ads-sync.js";
epom_ads_host = "//www.adshost2.com";
epom_click = "";
epom_custom_params = {};

document.write("<scr" + "ipt type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com\/js/show_ads.js'><\/script>");
//]]>
</script>
<!-- END TAG -->
 
  • Like
Reactions: rdn
Please try this code instead of yours (I modified it a bit):

Code:
<!-- BEGIN TAG - DO NOT MODIFY -->
<script type="text/javascript">
//<![CDATA[
epom_key = "1bebc3691b5ff78dabeaeb2a3c33e9c2";
epom_channel = "";
epom_code_format = "ads-sync.js";
epom_ads_host = "//www.adshost2.com";
epom_click = "";
epom_custom_params = {};

document.write("<scr" + "ipt type='text\/javascript' src='"+(location.protocol == 'https:' ? 'https:' : 'http:') + "//www.adshost2.com\/js/show_ads.js'><\/script>");
//]]>
</script>
<!-- END TAG -->
Works now.
I hope something will be added in the next version to prevent this :).
 
Works now.
I hope something will be added in the next version to prevent this :).
That will require complicated parsing of the html to avoid error like this. But doing that will affect performance so I'm unsure of what to do. Probably a slight change in the code should be the better way to do. Sorry for the inconvenience.
 
  • Like
Reactions: rdn
I'm using this code in my footer. It's a traffic tracker. What should I put in the blacklist to make sure that it works? It stopped tracking once I enabled the cache.

I added "extreme-dm.com" in the blacklist. Was that correct?

thanks!

<script src="http://t1.extreme-dm.com/f.js" id="eXF-crank-0" async defer></script>
 
I have a question.

So caching only works for guests, right?

What does caching mean? That when I do "reload page" as a guest, I won't see new messages, updates of the page? Just when 600 seconds are over and the site is cached again, then I will see those updates?
 
Back
Top Bottom