![]() |
Hi Orban! Merry Christmas.
Question: Does this hack automatically delete the cached template when the template is changed or updated? Mine is doing something strange. The only way I can view an updated template in the browser is to turn off your cacher, update the template, load the page. Then I turn the cacher back on. It seems as if the cache is still there until I turn the cacher off. LMK what this means. Thanks! |
Quote:
Quote:
|
Quote:
Just like Kihon Kata said, changes aren't saved in the template cache on my site also and I need to turn it off and on again for that. |
Most of those plugins modify vB quite a lot (use a lot of hooks). So it's quite easy for them to mess something up. Can you try to enable them 1 by 1 on a dev board so we can track down the culprit? I can then maybe give you a fix.
|
I disabled all products, still the same two problems (and there are no file edits).
But I think it's just the same problem like I had after enabling the mod in the options, the include statement is wrong (I posted a fix for the Admin/options problem). I changed the third instance of the include statement too and the archive was fixed (without creating new errors on other parts of the site) :) The template saving bug isn't solved with it. |
Quote:
|
I downloaded a fresh 3.6.4 just now and it seems they changed the header of their files.
You have to change template_cache.php:99 (or download the new template_cache.php) from Code:
if (strpos(CVS_REVISION, 'template.php') OR $settings_changed) Code:
if (strpos($_SERVER['SCRIPT_NAME'], 'template.php') OR $settings_changed) I still can't reproduce the errors RS_Jelle is encountering. Both include('template_cache.php') and require_once('./template_cache.php') work fine for me. |
Indeed, I think:
PHP Code:
PHP Code:
Why not change it also if it works like that for everyone :) Thanks for the clear cache update, it works fine now. |
So, switching to "require_once('./template_cache.php');" and using the new template_cache fixed all your problems?
My idea is that include() is weaker. If you upgrade your board, move to a new server, and forget template_cache.php, it won't break anything if you miss the file, because include() will just complain about a missing file then. Require will stop the execution. |
Include also works if you add ./, I understand your opinion about moving servers etc.
So it would become: PHP Code:
|
Orban, you rock. Thanks for the updated template_cache.php. I have tested this on two template changes and it worked fine. I even tested it on Locigian's webTemplates and it worked fine after I updated them.
Thanks for working on Christmas Day and Merry Christmas to you |
Quote:
Quote:
|
Orban, did you have a chance to look into the vBAdvanced problem mentioned HERE?
This mod is really great, but because we use vBA is untennable at the moment. Works perfectly from within the 'forum' folder, and has no problem whatever with the few other hacks we have installed (Zoints local/DownloadsII/VBSEO Sitemapper/GARS/GAL) Thankyou for your time |
Did you try to set the "Full Path to the Template/ Folder" option? Enter an absolute path.
|
Quote:
I also notice that it is falling over only on the 'Header/Navbar' replacements that are entered into the vBAdvanced settings. e.g. I have entered replacements for obvious files such as login.php, private.php, memberlist.php etc. and when the template_cache is enabled these links do NOT function (they try to use the 'root' path). I have NOT entered replacements for the gallery or external FAQ installations, but these links DO work. Clear as mud?? tell me about it :confused: Thankyou very much for your prompt reply. |
Quote:
Yes, trailing slash. /home/public_html/fred/forum/templates/ |
Is there a way to get this mod to work with mods that change messages posts?
Specifically this mod: BBcode Manager 1.32 : New looks for your quote, html, php and code bbcodes ! https://vborg.vbsupport.ru/showthread.php?t=120073 The author of that mod has left it orphaned so I won't get any help there....so I am hoping that something can be done through this mod to make it compatible. (crossing my fingers) The problem seems to be that because the message is getting cached it won't allow the new graphics in the above mentioned mod. I'm not really sure why though. Thanks! |
Exclude the following templates in the template cache settings:
bbcode_quote bbcode_code bbcode_highlight bbcode_php bbcode_html |
Quote:
I tried butting the above in the "Exclude Templates" box in the template cache system but the image quotes still are not displayed. Again, thanks! |
There's another incompatibility :(
After enabling your template cache the "Count of unread posts in the welcome box" stopped working....The hack is here: https://vborg.vbsupport.ru/showthread.php?p=1149261 Thanks again for your help! |
navbar
is the template to be excluded. |
Quote:
When looking at the source there is this: Code:
<!-- breadcrumb, login, pm info --> Or would that defeat the caching too much? |
Quote:
|
Quote:
I got it to work but only after I disabled "Cache Templates Seperately". Now off to figure out why :/ |
Quote:
I've looked all over and can't find other templates that other mod uses. Any ideas? In case anyone is wondering....there are two issues I'm talking about...one is with the bbcode_quote mod and the other is the "Count of unread posts in the welcome box". The message here is the one about the bbcode_quote. |
I don't know then sorry :/
|
Quote:
I actually installed this product just to cache my navbar, because it was slowing everything down. Also, @orban, how would I go about adding templates to this template cache? I have a number of custom templates that I'm using and I'm tired of seeing the message "4 queries for uncached templates" flash quickly just before the page loads. I tried creating a plugin that adds the templates to $globaltemplates, but it ... oh, I forgot a closing ')' This dramatically increases my page load time -- I had been getting complaints about 8 - 16 second page request times, followed by about another 3 - 4 for loading. Now most pages load in 1-2 seconds. XD |
Quote:
You have to add your custom templates to $globaltemplates that's correct. |
My custom templates were cached for about an hour, then they weren't cached anymore.
Don't know what to do now... Didn't change anything. Back up to 5 second load times. Okay, so even though my setting for $vboptions[forumhome] is home.php, my navbar is attempting to go to index.php. And what do you know? Over half my templates folder vanished... |
That's really weird. Files don't usually just disappear.
Have you tried to manually clear our your template cache folder? |
Yes. They seem to be coming back now though. The weird thing is that my $vboptions[forumhome] in the navbar is still eval-ing to 'index' even though in vBulletin Options it's set to 'home'
I don't see how it could be an str_replace issue, since it says $vboptions[forumhome] and not 'index' in the template. Edit: For some reason my forum had switched to using an older version of my current style that didn't have any updates from the past month. Everything's working beautifully again. |
Man I have been fiddling with this for days and I'm beginning to think this mod isn't working at all....on my site anyway.
If I turn on the cache and go to the following address it reads the same as if the cache were turned off. http://www.websiteoptimization.com/services/analyze/ Shouldn't the load times change with this mod turned on? |
Page load times will change only if your server is creaking under heavy load. If your server is only moderately busy, you may not see any change.
You should see new files being written to the templates directory. If that happens, be assured that it is working. Also, the benefit will be minimal (or maybe none) unless you have a good php opcode cache along with this hack. |
This mod is for bigger boards, you usually won't notice any difference on your small board with just a handful people online (if that is your board: http://www.politicalforums.net/).
|
Well...It's really not a problem for me, load time I mean. I have a 3mb connection.
But there are a couple people complaining about access times to the site. So I'm trying to make em happy ya know. |
The template cache doesn't not decrease your page size.
Your site is already gzipped, that's about as good as it can get. |
I tried the template compression mod you mentioned earlier in this thread. But I really don't see a difference there either.
But...thanks for your help... Keep up the good work! |
yeah it makes basically no difference if your site is gzipped
|
Is there any reason why this mod would stop the "Who's been online today" mod from working?
With this enabled it doesn't display. When I disable this, it works fine. I cleared my template cache directory so it's definitely not just finding an old file. |
Question for ya. I used this mod (an earlier version for 3.5.x) and when this cache mod is enabled, I could only use 1 style and the others would come up as white pages. My site has 3 styles and I'm wondering if it has changed so you can have multiple styles and still use this hack.
|
All times are GMT. The time now is 11:58 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|