![]() |
Quote:
|
Has your board heavy traffic? Shared hosting? PHP version? Are you using a PHP cache?
|
Yes my board has heavy traffic. Dedicated hosting. PHP 5.0.5. I'm using APC
|
i have heavey traffic also with no problems at all and i have alot of mods installed..
|
You *should* run PHP 5.1, PHP 5.0 is not recommended by PHP I think.
Blank page? That usually sounds like a parsing error or something. Can you check all the files in the templates/ folder if they are empty? Or somehow corrupted? APC cache too small? |
I installed it without any problems, but it does not cache anything. The /templates folder ist chmode 777, but no files appear when browsing the forums
any ideas? (yes it is enabled) |
I would like to upgrade PHP too, but my board's webmaster don't want to cuz the database is over 5GB.
Here is APC conifg, anything I should change? apc.max_file_size 1M is too small, maybe? apc.cache_by_default On On apc.enable_cli Off Off apc.enabled On On apc.file_update_protection 2 2 apc.filters no value no value apc.gc_ttl 3600 3600 apc.max_file_size 1M 1M apc.mmap_file_mask no value no value apc.num_files_hint 1000 1000 apc.optimization Off Off apc.shm_segments 1 1 apc.shm_size 64 64 apc.slam_defense Off Off apc.ttl 0 0 apc.user_entries_hint 100 100 apc.user_ttl 0 0 Nothing's wrong with files in folder templates. |
Quote:
If you know PHP you could try to change the relative paths in the template_cache.php to absolule paths? Running safe mode? Or SuEXEC PHP or something similar? Seems like it's a permission problem to be honest... Quote:
Do you log PHP errors to a file? |
Installed for the Travel Adventures community
|
Is posible add a new param in ACP->Forum Options->Template cache to change the standard dir templates to another dir ??
I wont change the standard dir /forum/templates to another drive to gain in speed. Another question, is recommended disable the vBulletin datastore cache with this hack or not ? Excuse my broken English |
Quote:
Uploaded a new version 1.0.3 with this option added. No other changes were made, if it's running fine for you there is no need to upgrade. |
////////////// Hotm \\\\\\\\\\\\\\
|
what its up? danm i'll be voting for that hack for sure!
|
EoTM more like! Extension of the month! :D
|
Installed today. Have a site that gets some heavy traffic from time to time. Installed APC which speeds things up greatly, then installed your hack which made that sites forum fly.
Using the separate files option. Does save the 1 mysql call per page as advertised. CLICKED INSTALL. |
Happy to hear!
|
Hello,
I love the idea of this mod :) I have zend installed would you advise that I switch on the "Cache Templates Seperatly" feature Many thanks Ben |
I don't know, it depends on too many factors. Just try it out.
|
i love it! Installed for my site ;)
|
Quote:
|
i dont have a problem at all wth it erasing my index.php file opps had it backwards my index.html
|
It doesn't remove a index.html. I can add index.php to the list of files not to be removed if you want.
You can edit template_cache.php:105 to fix it right now. There is no security problem with people accessing templates/ or even one of the files directly. The files are just Code:
<?php |
Sounds great...unfortunately it's not compatible with Plugin Accelerator plugin. It screws up my main page (no shoutbox, weird who's online) when using them combined...
:cross-eyed: :tired: Correction: even using it alone the shoutbox (vbshout) goes away :( |
Yes, you have to exclude FORUMHOME (I think?) when using it. Read the instructions ;) Or disable the save as seperate file option.
Can you link me the plugin acc plugin? |
You can nominate this extension by clicking "Nominate this mod" in the "Mod Options" section on this page. (For June I think.)
https://vborg.vbsupport.ru/showthread.php?t=115685 |
Quote:
|
I tried to unistall this, it doesn't mix with the plugin accelator, now all my pages are blank white. I had to manually disable plugins, can't turn them back on or else.
|
Quote:
Code:
cache_templates_with_file_cache($globaltemplates, $style['templatelist']); With all due respect, that's an awful hack. |
i like that hack its been working and speeding up my site :S why everyone complainning about it?
|
Quote:
https://vborg.vbsupport.ru/showthread.php?t=107315 |
While looking at the code fast ... Basically, the plugin accelerator writes all exististing installed plugins to files. Then, it reads TWICE(instead of once) ALL(instead of only the needed) newly created hook/plugin files, every time you access a forum page. In other words, you process a lot of unnecesary data. Since when reading many files in block is faster then reading a small piece of data from a database table? I might be wrong, since I only examined the class included in the plugin files... Feel free to comment on this, we are here to learn, not to put down other coders.
Why not just leave it the way it is made by vBulletin and install eAccelerator or APC? eAccelerator, on top of caching the queries, it optimizes the PHP code also... |
Well, I see several problems with that addon, don't even know where to start. I would not recommend using that at all since it can essentially ++++ up your installation. What happens if you insert some bad code in for example the global hook? You can't even disable that addon anymore then. Then you have to make all your files world writable. I'll add a note that using this plugin is not recommended with this extension.
TECK: As far as I can see, the plugin accelerator plugin writes the plugins INTO the official vBulletin files INSTEAD of the hook calls. So you basically end up hacking the offcial vBulletin files. Meaning when something goes wrong you can reinstall vBulletin. The problem is that APC/eAcc doesn't cache eval(). What I DO recommend is when you're having a lot of plugins move the code to an external .php file and include that one at the global hook. I have a 20kb plugin.php with all my php code in it, I only add if's and function calls to the actual plugins. |
Quote:
Ive been using it with yours and everything seems fine explain external.php ? |
Well just see this extension, instead of putting all the PHP code into a plugin I move it to template_cache.php and just add a few lines to the plugins.
|
Quote:
Thanks for your great job :) |
Quote:
oh ok *scratches head* |
Quote:
me too :confused: |
It's pretty easy.
He's having a master code static page, probably separated in functions. Then, he calls the specific functions in plugin, with one line of code. Faster. |
Yes exactly.
|
Quote:
easy when you understand :confused: *feeling blond* |
All times are GMT. The time now is 10:21 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:
|