vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Custom BBCodes not working after rebuilding post cache (https://vborg.vbsupport.ru/showthread.php?t=315439)

squishi 11-15-2014 07:24 PM

Custom BBCodes not working after rebuilding post cache
 
The title says it all.

I have reprocessed the post cache of all my forum's posts.
Now the custom [ YOUTUBE][/YOUTUBE] bbcodes (without the space) no longer work in older posts.
When I post a new one, the embedded videos do show. Old posts just show the bbcode.

kh99 11-15-2014 08:27 PM

Hmm...maybe it doesn't work right if you rebuild the post cache from the admincp. You could try just deleting the post cache and see what happens (it will get rebuilt as users view posts).

ozzy47 11-15-2014 10:12 PM

If you edit one of the older posts, what is it showing exactly for the full bbcode? Is it any different from a post that is working?

Lynne 11-16-2014 05:29 PM

If you disable post caching does it work or not?

squishi 11-17-2014 06:21 AM

Where can I find the setting to turn off the post cache? :confused:

When I edit an older post, the youtube embed words again.
So there is nothing wrong with the bbcodes, they just don't get replaced when rebuilding the post cache.

ozzy47 11-17-2014 09:14 AM

If you edit one of the older posts, what is it showing exactly for the full bbcode? Is it any different from a post that is working?

Like is the code in lowercase and and the working code is in uppercase? Or do you just click on edit post, then save changing nothing, and it works?

Lynne 11-17-2014 04:58 PM

Quote:

Originally Posted by squishi (Post 2523074)
Where can I find the setting to turn off the post cache? :confused:

AdminCP > Settings > Options > Server Settings > Cached Posts Lifespan > 0

squishi 11-18-2014 07:27 AM

I set the post cache lifetime to 0 and then revisted older posts with an embed.
They are not showing the embedded video, just the code.

The case of the bbcode should not matter. WHen I add a new post, the bbcode can be upper or lower case. I expect the same behavior from the post parser.

--------------- Added [DATE]1416302924[/DATE] at [TIME]1416302924[/TIME] ---------------

I have also just disabled all plugins and turned the post cache time to 0.
The custom BBCodes are still not parsed.

--------------- Added [DATE]1416302989[/DATE] at [TIME]1416302989[/TIME] ---------------

When I edit an older post and just hit the save button, the code gets parsed and the video shows.

kh99 11-18-2014 07:52 AM

Try running the "Hourly cleanup #2" scheduled task. That should remove cached posts that are older than the limit (all of them, since you have it set to 0). From what you said it definitely sounds like it's a problem with the posts in the rebuild cache, so you just need to clear it.

squishi 11-18-2014 03:12 PM

I did rebuild all posts twice, using the maintenance task. That should have rebuilt the posts.
But it's actually what has caused the problem.

I would prefer not to delete all cached posts. That would only increase the load on the server.
Instead, I would prefer to fix whatever problem there is with the BBCode parser that is used when the post cache is rebuilt.


All times are GMT. The time now is 02:00 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01096 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete