PDA

View Full Version : Template Cache System


Trigunflame
03-11-2006, 10:00 PM
Vbulletin Template Cache System
Optimize Your Forums!!

https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=110144)

Notice:

While filesystem caching does provide a performance increase; it can be futher increased. I plan on including mmcache, eaccelerator, and APC shared memory support in the near future.

This will eliminate the need for reading/writing file to and from the filesystem.


Summary:

This modification will cache the templates that your forum uses to the file system saving you a mysql query.

Normally this data is requested from the database on every page load, with this however we cache all the templates we would normally use into a file to be included as a standard php code.

This will save you a pretty large query, the full size of the templates can be anywhere from 40kb to 200kb per page; even larger on some forums.

It will literally take 1 or 2 minutes to install, not long for the benefits that you receive.

PS. Use this in conjunction with my Other Hack (Compress Forum Templates) for speeding up your forum even more by compressing templates.
https://vborg.vbsupport.ru/showthread.php?t=107615
PS. Use this in conjunction with my Other Hack (Accelerated Plugins) for speeding up your forum even more by Inlining your plugins.
https://vborg.vbsupport.ru/showthread.php?t=107315


Instructions:

1. Download Zip File.
2. Read the INSTALL.txt
3. Click install if you like :)


Updates:
3/14/2006 8:34am : Large update, adding additional file locking code as well as moved some redundant code into functions. If you have an active site I recommend that you update with the newest version.

3/14/2006 7:07am : Cleaned up the code a little bit, no need to redo the edits unless you are a perfectionist like myself ;)

3/13/2006 12:52 / Typo Update: There was a typo in the global.php edit, please re-do that step.

3/13/2006 11:48 / Massive Critical Update:
1. Automatically caches any uncached templates.
2. Files are now stored as .php files to prevent easy viewing.
I strongly recommend you update ASAP.
Just follow the INSTALL.txt and go through the procedures again.
PS. Make sure to empty the template_cache directory after upgrading. Thankyou.

3/12/2006 12:20pm
1. Now caches most action templates
2. The cache cleaner will not delete index.htm or index.html files.
3. Also updated the install.txt
4. Fixed parse error.
To upgrade, just re-do the code modifications listed in the install.txt file.
PLEASE clear the template_cache directory, after you redo the modifications. The new changes cache the actiontemplates as well.


Troubleshooting:

Start browsing your forum, going to your main page then browsing threads etc.. should start seeing items appear in that template_cache directory such as index_1.php, showthread_1.php etc.. if not you need to give this directory WRITE permissions (CHMOD 777)

https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=110144)

TCattitude
03-12-2006, 11:57 AM
Sounds really nice, i will test it.
Install ;)

klaush
03-12-2006, 12:03 PM
So me! Thanks!

MissKalunji
03-12-2006, 12:03 PM
That means less server loads correct?

horseUSA
03-12-2006, 12:04 PM
very nice sir!

Trigunflame
03-12-2006, 12:06 PM
That means less server loads correct?

Indeed, and thats always a good thing ;)

Trigunflame
03-12-2006, 12:08 PM
very nice sir!

Thanks, its a small modification but it does help ;)

bashy
03-12-2006, 12:13 PM
Well i have installed.....
Lets see what i can break now :o

Trigunflame
03-12-2006, 12:16 PM
Well i have installed.....
Lets see what i can break now :o

I dont think it should break anything.. but then again things do happen.. I tested it with plugins, phrases, new templates etc.. and it worked fine for me...

It's really simple code so I don't think it has very large margin for errors..

MissKalunji
03-12-2006, 12:26 PM
Indeed, and thats always a good thing ;)


weeeeeeeeeeeeeee :banana: thanks! thats what i need :bunny:

Trigunflame
03-12-2006, 01:19 PM
:), *hopes it hasnt broken anything* XD

Robru
03-12-2006, 01:22 PM
Gets only blank pages after installed !

DementedMindz
03-12-2006, 01:34 PM
cant download it .....Invalid Attachment specified. If you followed a valid link, please notify the administrator

Trigunflame
03-12-2006, 01:34 PM
cant download it .....Invalid Attachment specified. If you followed a valid link, please notify the administrator

Try again.

Robru
03-12-2006, 01:49 PM
There are no files created in template_cache.
Using Windows 2003, chmod not nescesary, Only Read and Hide are checked out.

puertoblack2003
03-12-2006, 01:52 PM
clicked installed,,,hmmm i guess it looks the same to me i guess have to wait ...great hack:bunny:

DementedMindz
03-12-2006, 01:53 PM
so far 2 of the 3 installed and its a major improvement thanks :)

Trigunflame
03-12-2006, 01:55 PM
There are no files created in template_cache.
Using Windows 2003, chmod not nescesary, Only Read and Hide are checked out.

Please follow the instructions.

The Realist
03-12-2006, 02:12 PM
Installed and working 100%

Thanks M8 :)

Trigunflame
03-12-2006, 02:13 PM
Note: There ARE no BUGS that prevent the page from showing.

Please make sure you follow the instructions to the Letter.

DementedMindz
03-12-2006, 02:15 PM
i was wondering when i open the buddy list i get these... how can i cache them????
Uncached templates: BUDDYLIST (1)
Uncached templates: buddylistbit (2)

DementedMindz
03-12-2006, 02:19 PM
also was wondering if it would be ok to put a index file in the cache this way no one can browse it?

Trigunflame
03-12-2006, 02:22 PM
also was wondering if it would be ok to put a index file in the cache this way no one can browse it?

Good idea

Trigunflame
03-12-2006, 02:23 PM
i was wondering when i open the buddy list i get these... how can i cache them????
Uncached templates: BUDDYLIST (1)
Uncached templates: buddylistbit (2)

What page is that exactly? Can you give me the filename?

DementedMindz
03-12-2006, 02:24 PM
well i have it on the buddy pop up list in the navbar and when you click the vbshout.php?do=archive you get a bunch of uncached templates too

Trigunflame
03-12-2006, 02:28 PM
well i have it on the buddy pop up list in the navbar and when you click the vbshout.php?do=archive you get a bunch of uncached templates too

Ah these are action templates I believe, and they would differ from do=blah to do=this, i noticed this on the usercp page as well.

I might have to make some slight adjustments.

DementedMindz
03-12-2006, 02:31 PM
that would be tight yeah i installed all 3... there is a major difference in speeds on loading now.... :)

puertoblack2003
03-12-2006, 02:40 PM
to Trigunflame that template_cache directory we had to create i'm curious do we put any files in that directory? or is that what needs to be read for the hack to work...:)

vampireus
03-12-2006, 02:41 PM
Installed :D It works great for me

DementedMindz
03-12-2006, 02:44 PM
to Trigunflame that template_cache directory we had to create i'm curious do we put any files in that directory? or is that what needs to be read for the hack to work...:)


only thing i would put in there is a index.html this way no users can browse it.... but its used to store the cache files thats all

Trigunflame
03-12-2006, 03:10 PM
Update:

Now caches all action templates.
The cache cleaner will not delete index.htm or index.html files.
Also updated the install.txt

PLEASE clear the template_cache directory, after you redo the modifications. The new changes cache the actiontemplates as well.

vampireus
03-12-2006, 03:11 PM
Opps, now I have a problem, only get blank page on some

pm.php, private.php ... so far

P.S : posted it before check out the new update

Trigunflame
03-12-2006, 03:12 PM
Opps, now I have a problem, only get blank page on some

pm.php, private.php ... so far

Please download the new zip file and redo the code edits.. make sure thats not the problem. And clear that template_cache directory. The new file caches more stuff.

DementedMindz
03-12-2006, 03:21 PM
how do we update it? is there code changes? or just clean cache and over write files and product?

Trigunflame
03-12-2006, 03:22 PM
how do we update it? is there code changes? or just clean cache and over write files and product?

Just redo the code edits from the install.txt file.

ps. the editor templates are still getting around the modification.. will have to make another minor change.. although ive only seen it affect the profile.php file as for now.

DementedMindz
03-12-2006, 03:23 PM
ok thanks trying now :)

puertoblack2003
03-12-2006, 03:25 PM
only thing i would put in there is a index.html this way no users can browse it.... but its used to store the cache files thats all

ok thanks

buro9
03-12-2006, 03:26 PM
Very nice as always Dusty.

One small thing to the action templates code:

// Cache All ActionTemplates
if (isset($actiontemplates)) {
foreach ($actiontemplates AS $k => $v) {
$globaltemplates = array_merge($globaltemplates, $actiontemplates[$k]);
}
}


Some hacks haven't include the empty $actiontemplates array in their files... so using isset means that the script won't dribble a warning back to the output stream when that happens.

DementedMindz
03-12-2006, 03:33 PM
ok i still get the uncached templates also when you go to clean the cache you get this

Parse error: parse error, unexpected T_VARIABLE in /admincp/template.php on line 85

and on that line is this

if ($f != '.' && $f != '..' && $f != 'index.htm' $f != 'index.html')

Trigunflame
03-12-2006, 04:00 PM
ok i still get the uncached templates also when you go to clean the cache you get this

Parse error: parse error, unexpected T_VARIABLE in /admincp/template.php on line 85

and on that line is this

if ($f != '.' && $f != '..' && $f != 'index.htm' $f != 'index.html')

change that to if ($f != '.' && $f != '..' && $f != 'index.htm' && $f != 'index.html')

ps. It cleaned up most of the action templates, but not all of em.. we'll see.

pss. whats ur forum url.

DementedMindz
03-12-2006, 04:03 PM
is there a way to fix the uncached templates?? it still shows it for the buddy list, also i have vbshout installed and in the archieve page it shows them.... also i just installed ecdownloads and it has it in there major.... mostly every page is a uncached templates.. dont mean to be a pain just tryin to help others and myself if they have the same problem

Trigunflame
03-12-2006, 04:05 PM
is there a way to fix the uncached templates?? it still shows it for the buddy list, also i have vbshout installed and in the archieve page it shows them.... also i just installed ecdownloads and it has it in there major.... mostly every page is a uncached templates.. dont mean to be a pain just tryin to help others and myself if they have the same problem

USE the new code in the install.txt, and REMOVE all the files from that template_cache directory after you do so.

There should be no uncached templates for buddylist page as Im viewing it myself and its fine.

puertoblack2003
03-12-2006, 04:09 PM
Update:

Now caches all action templates.
The cache cleaner will not delete index.htm or index.html files.
Also updated the install.txt

PLEASE clear the template_cache directory, after you redo the modifications. The new changes cache the actiontemplates as well.

hey i updated to new i edited it and now i get this error before that the old one was fine...Parse error: syntax error, unexpected T_VARIABLE in /home/.debit/myusername/puertotech.com/admincp/template.php on line 85



Edited: sorry should have looked above fixed it works well thank you

DementedMindz
03-12-2006, 04:14 PM
that worked like a charm thanks :)

Trigunflame
03-12-2006, 04:40 PM
So glad, im tired and need to rest...

puertoblack2003
03-12-2006, 04:43 PM
So glad, im tired and need to rest...



just noticed that the shout box disappeared..

Trigunflame
03-12-2006, 04:49 PM
just noticed that the shout box disappeared..

Did you clear your template directory after you made the new modifications, make sure to do that.

Also anytime you edit/delete/add styles, templates, plugins; you need to clean the cache directory for now.

In the future I will add code to handle this automatically.

puertoblack2003
03-12-2006, 05:02 PM
Did you clear your template directory after you made the new modifications, make sure to do that.

Also anytime you edit/delete/add styles, templates, plugins; you need to clean the cache directory for now.

In the future I will add code to handle this automatically.

yes i did that as well it may be one of the hack you have the plugin acc. or the template compressor...don't know which one because i installed both hack this morning i even disabled them too but no luck.

just curious anybody else don't see shout box????

forte
03-12-2006, 05:08 PM
yes i did that as well it may be one of the hack you have the plugin acc. or the template compressor...don't know which one because i installed both hack this morning i even disabled them too but no luck.

just curious anybody else don't see shout box????

It is the template compressor hack. You should to the thread of the compressor's and look for the fix.

puertoblack2003
03-12-2006, 05:11 PM
It is the template compressor hack. You should to the thread of the compressor's and look for the fix.


ok thanks will do

Obsequium
03-12-2006, 06:31 PM
One thing I've noticed after running this for a while I have a large number of cron_x.db and vbshout_x.db files in my cache directory.

The Realist
03-12-2006, 06:48 PM
How do you stop peeps gaining access to the template_cache without CHMOD the actual file?

And are the files harmfull if the folder is open wide security wise?

Laters

DementedMindz
03-12-2006, 07:36 PM
i would at least put a index.html file in there for now this way you cant open the folder in a browser

hotwheels
03-12-2006, 10:07 PM
clicks install

MentaL
03-12-2006, 11:32 PM
Fantastic

http://forum.ragezone.com

Prob 1 of my fav mods up there with vbseo :)

Desihunk
03-13-2006, 01:43 AM
Thanks.

/me clicks install

Trigunflame
03-13-2006, 06:10 AM
One thing I've noticed after running this for a while I have a large number of cron_x.db and vbshout_x.db files in my cache directory.

Ya cause they are files that use templates as well due to including global.php, it shouldnt hurt anything.

Trigunflame
03-13-2006, 06:11 AM
How do you stop peeps gaining access to the template_cache without CHMOD the actual file?

And are the files harmfull if the folder is open wide security wise?

Laters

Its just template code.. nothing really "Important" is being exposed anyway. But you could stick an index.html file in there.

Trigunflame
03-13-2006, 06:12 AM
Fantastic

http://forum.ragezone.com

Prob 1 of my fav mods up there with vbseo :)

Thanks, im glad you like ;)

DementedMindz
03-13-2006, 01:56 PM
i was wondering i have vbjournal installed and since i installed this it gives a error here is the error ... Warning: Invalid argument supplied for foreach() in /global.php on line 438

and here is that line

foreach ($actiontemplates AS $k => $v)

what could i do to fix that???

hmm seemed to fix itself lol

buro9
03-13-2006, 02:01 PM
i was wondering i have vbjournal installed and since i installed this it gives a error here is the error ... Warning: Invalid argument supplied for foreach() in /global.php on line 438

and here is that line


foreach ($actiontemplates AS $k => $v)

what could i do to fix that???

https://vborg.vbsupport.ru/showpost.php?p=922984&postcount=38

DementedMindz
03-13-2006, 02:06 PM
thank you im trying it now so far so good :)

Trigunflame
03-13-2006, 02:42 PM
Massive Critical Update:

Huge updates to the template cache:

1. Automatically caches any uncached templates.
2. Files are now stored as .php files to prevent easy viewing.

I strongly recommend you update ASAP.
Just follow the INSTALL.txt and go through the procedures again.

PS. Make sure to empty the template_cache directory after upgrading. Thankyou.

Thankyou,
Dusty Burns aka Trigunflame

hotwheels
03-13-2006, 02:45 PM
How can i delete all of this from my database.........I finished the install of the 3 hack's listed above and it literally killed my site......I no longer am able to use shoutbox, attachment's in quickreply, photoshop images on forum home, etc...........

I really really need help trying to figure out how to get this problem resolved. All of the hack's show they are still installed on my site, but yet, none of them will appear now......

I have removed the hack's here, in reverse order and still no luck getting my forum's to work correctly......

www.insanemustangs.com username: test Password: tester feel free to have a look and see.......we really miss the shoutbox feature.

MentaL
03-13-2006, 02:52 PM
Updated, no problems, noticed it now outputs as php.

http://forum.ragezone.com

Trigunflame
03-13-2006, 03:02 PM
Updated, no problems, noticed it now outputs as php.

http://forum.ragezone.com

What do you mean exactly... the filename? .db files were open to be seen by the browser.. so i opted to change it.

PabloAM
03-13-2006, 03:08 PM
Whos update??

Trigunflame
03-13-2006, 03:26 PM
Update:

Update code in global.php to "Hopefully" be more compatible.
Moved the code in functions.php to the top of the function.

Trigunflame
03-13-2006, 03:47 PM
Typo Update: There was a typo in the global.php edit, please re-do that step.

hotwheels
03-13-2006, 11:12 PM
do you have a way that i can uninstall all 3 of these program's? I just rebuilt my entire site, and still have a these 3 showing in my software......I tried to undo them in the reverse order, but they aren't totaly gone.

vampireus
03-14-2006, 03:49 AM
This is one weird thing I get. Everything is fine for a while, then get blank page on some random file, clear the cache and everything is fine, then it happens again like a cycle

Trigunflame
03-14-2006, 10:02 AM
Updates:

3/14/2006 7:07am : Cleaned up the code a little bit, no need to redo the edits unless you are a perfectionist like myself ;)

Trigunflame
03-14-2006, 10:05 AM
This is one weird thing I get. Everything is fine for a while, then get blank page on some random file, clear the cache and everything is fine, then it happens again like a cycle

Thats odd... try keeping track of how long it takes for it to happen, note the file, it may be a concurrency problem..

Trigunflame
03-14-2006, 11:30 AM
Large update:

3/14/2006 8:34am : Added additional file locking code as well as moved some redundant code into functions. If you have an active site I recommend that you update with the newest version.

DementedMindz
03-14-2006, 03:33 PM
do you have the old install from the previous version it sucks going back in and trying to find which lines were edited without seeing the code from before????

Trigunflame
03-14-2006, 03:37 PM
do you have the old install from the previous version it sucks going back in and trying to find which lines were edited without seeing the code from before????

oO, its only like 4 edits

1 in global.php
2 in functions.php
1 in template.php

and unfortunately i dont have it lol, once i update my local code.. i only keep that copy.

DementedMindz
03-14-2006, 03:41 PM
yeah i know its only 4 edits but i cant seem to see which code i changed i have changed it so much in the last few days lol im just not sure which code it was on the bottom of functions.php thats where im stuck lol

DementedMindz
03-14-2006, 04:13 PM
ok i think i got it i compared the 2 php files with Beyond Compare to see what edits hopefully all goes well :) just cleaned the cache and checking now... maybe for future version have a update on what was in last version compared to this version??

Trigunflame
03-14-2006, 07:42 PM
ok i think i got it i compared the 2 php files with Beyond Compare to see what edits hopefully all goes well :) just cleaned the cache and checking now... maybe for future version have a update on what was in last version compared to this version??

A general description of what was changes is generally what everyone does ;)

DementedMindz
03-14-2006, 07:45 PM
its just hard to see what was changed from the last version... maybe comment out a bottom line at the end of each code with your name on each this way its easier to go back in and edit kinda like the top of the code?

dan35
03-14-2006, 07:47 PM
After I upgraded it from version 2.1 to 2.5.2 or 2.5.4, these scripts show twice on forumhome.

Members who have visited the forum (Today or last 24 hours).
https://vborg.vbsupport.ru/showthread.php?t=82769

Display count of unread posts in welcome box
https://vborg.vbsupport.ru/showthread.php?t=96522

Trigunflame
03-14-2006, 07:50 PM
After I upgraded it from version 2.1 to 2.5.2 or 2.5.4, these scripts show twice on forumhome.

Members who have visited the forum (Today or last 24 hours).
https://vborg.vbsupport.ru/showthread.php?t=82769

Display count of unread posts in welcome box
https://vborg.vbsupport.ru/showthread.php?t=96522

Did you clear your cache directory after upgrading?

dan35
03-14-2006, 07:51 PM
yes, I did.

Trigunflame
03-14-2006, 07:58 PM
yes, I did.

Ask Paul, I havnt looked at the source of those 2 hacks; unless you didnt do something right with the install.. im not sure how he could be doing that.

Will look into it later.

dan35
03-14-2006, 08:03 PM
Your version 2.1 works fine.

Reef
03-15-2006, 03:03 AM
This is a cool addition but I have a double welcome panel after it gets cached.

I did clear the cache a couple tmes and get the same results after the second page load..

see attachment

EDIT:

I now also noticed my "Who has viewed thread" hack is no longer showing up

Trigunflame
03-15-2006, 09:06 AM
Will work on it later, its always the damn plugins.

Trigunflame
03-15-2006, 09:15 AM
This is a cool addition but I have a double welcome panel after it gets cached.

I did clear the cache a couple tmes and get the same results after the second page load..

see attachment


EDIT:

I now also noticed my "Who has viewed thread" hack is no longer showing up

Ps. Did you do a clean install of this modification as well? Between 2.5.0 and 2.5.4 were lots of changes.

MentaL
03-15-2006, 12:55 PM
those wanting to sort global.php back to original

search


($hook = vBulletinHook::fetch_hook('cache_templates')) ? eval($hook) : false;


below , delete


// now get all the templates we have specified
/**
* @author Dusty Burns (Trigunflame@charter.net)
* @copyright 2006-2007 Dusty Burns
* @package Vbulletin Template Cache
* @version 2.5.0.0
* @todo Add Shared Memory Support
*/

/*
* Is this actually necessary?
*
* Probably not, but right now I don't want hacks
* whos authors did not copy the define() for
* THIS_SCRIPT and change it; causing us to get
* the wrong cache and screwing the page up.
*
* This basically makes sure that THE_SCRIPT does
* correspond to the actual filename being requested.
*
* PS. You can change .php down below this to whatever
* file ext you use for Your PHP files: ie .php4,.php5
*/
if (THIS_SCRIPT == basename($vbulletin->script, '.php'))
{
// Cache Templates
$vbulletin->cache_templates = true;

/*
* It is nice to have some sort of function
* for locking while writing data. We could
* just use flock, but for the sake of
* conforming to how jelsoft does some things.
*
* Begin Generic Lock
*/
function tpl_cache_lock()
{
global $db;
$lock_attempts = 5;
while ($lock_attempts >= 1)
{
$result = $db->query_write(
'UPDATE ' . TABLE_PREFIX . 'adminutil SET ' .
'text = UNIX_TIMESTAMP() ' .
"WHERE title = 'datastorelock' " .
'AND text < UNIX_TIMESTAMP() - 15'
);
if ($db->affected_rows() > 0) { return true; } else { $lock_attempts--; sleep(1); }
}
return false;
}

function tpl_cache_unlock()
{
global $db;
$db->query_write(
'UPDATE ' . TABLE_PREFIX . 'adminutil ' .
"SET text = 0 WHERE title = 'datastorelock'"
);
}
/*
* End Generic Lock
*/

// Check Existance
$tpl_cache_name = DIR . '/template_cache/' . THIS_SCRIPT . '_' . STYLEID . '.php';

// Look For Cached File
if (@include($tpl_cache_name))
{
// Fake Cached Templates & Update Style
cache_templates(array(), $style['templatelist']);
}
// Write Cache
else
{
// Build Template Cache
cache_templates($globaltemplates, $style['templatelist']);

// Get File Lock
if (tpl_cache_lock())
{
$tpl_cache = "<?php\r\n" . '$vbulletin->templatecache = ' .
var_export($vbulletin->templatecache, true) . ';' . "\r\n?>";

// Debugging Purposes
if ($fp = @fopen($tpl_cache_name, 'w+'))
{
@fwrite($fp, $tpl_cache);
@fclose($fp);
unset($tpl_cache);
tpl_cache_unlock();
}
// Could Not Create File
else
{
tpl_cache_unlock();
exit("Could not cache template file. The template_cache dir must be writable (CHMOD 777).");
}
}
}
}
// Vbulletin Default
else
{
// now get all the templates we have specified
cache_templates($globaltemplates, $style['templatelist']);
}
unset($globaltemplates, $actiontemplates, $_get_edit_templates, $_templatedo);


replace with


// now get all the templates we have specified
cache_templates($globaltemplates, $style['templatelist']);
unset($globaltemplates, $actiontemplates, $_get_edit_templates, $_templatedo);


i believe thats original

Trigunflame
03-15-2006, 07:31 PM
Vote Vbulletin World Map System OR Plugin Accelerator for HOTM (https://vborg.vbsupport.ru/showthread.php?p=926146)

Tralala
03-15-2006, 11:28 PM
I use Hellcat's Realtime Page Compressor (https://vborg.vbsupport.ru/showthread.php?t=106333)... does this work with that?

nht`bender
03-16-2006, 02:13 PM
I have this problem (double vBShout, Members visited today, IRC manager) too...
Any ideas?

bada_bing
03-16-2006, 10:28 PM
I use Hellcat's Realtime Page Compressor (https://vborg.vbsupport.ru/showthread.php?t=106333)... does this work with that?
I do too good question.... Also does this work on 3.5.3 ?

MissKalunji
03-16-2006, 10:43 PM
Yes it does i have them all hellcat's and pluging accelerator and pluging cache and compresssors works fine:)

Andreas
03-16-2006, 10:50 PM
Nice idea though I see two problems:

1) You could run into an endless loop trying to get a lock
2) Increased memory footprint
After some time, you've effectively cached templates for all actions.

I played with template caching myself (using APC) some time ago and didn't get any performacne increases - it even seemd to be a bit slower.

What are your experiences?

Scott MacVicar
03-16-2006, 11:37 PM
I did the same test last year, i got marginal improvements in some scripts and performance loss in others. I was relying on APC etc to cache the file into memory.

MentaL
03-17-2006, 12:09 PM
i have had no problems using it, infact it does help quite a fair bit on my forum.

Trigunflame
03-17-2006, 12:52 PM
Nice idea though I see two problems:

1) You could run into an endless loop trying to get a lock
2) Increased memory footprint
After some time, you've effectively cached templates for all actions.

I played with template caching myself (using APC) some time ago and didn't get any performacne increases - it even seemd to be a bit slower.

What are your experiences?

Using MySQL to get a first lock, then using FLOCK to attempt a lock there is a very minimal chance of running into an endless loop; even so it would timeout eventually as there is no code to not prevent from timing out. Even so, I could add a small counter into the while loop.

The memory footprint is increased with subsequent caching, and i Discussed that with a couple of other people while deciding how i should delegate uncached templates; at first I was sorting caches by their GET request ie.

private_trackpm_1.php and so forth; the problem with this is that there is no way to tell if the do= is a valid request, and would subsequently create bogus template cache files that were based off of global headers inherent to each inclusion of ./global.php

If you have a better idea feel free to say.

ps. It is faster on my end using this system; with a better plan and support for SHM via eaccelerator/apc/ etc.. it can be increased.

Trigunflame
03-17-2006, 01:14 PM
OK, cleaned up my post to make it make more sense.

Basically misc.php (for buddylist) and private.php (for private messages) are broken for me by this script. If I delete the private_36.php and misc_36.php (and so on) from the cache directory, they work OK, but then once cached again, they break once more.

Can I exclude these from being cached somehow?

private works absolutely fine on my end, as well as misc.php; theres no reason why they should be excluded.

Whats the problem exactly.

Scott MacVicar
03-17-2006, 05:25 PM
Your best not to store it in eaccelerator manually as you will get overhead for the unserialize calls for a large template array, storing it in files is the best way.

You should be able to use $_templatedo so that you cache the correct set of action templates, though personally I would create a single global cache file with the ones present in global.php and then a script / action specific cache.

Regarding uncached templates, why not look through the value of $vbulletin->templatecache at the end of script execution.

I have several designs for a potentially better system if you want to investigate.

LBSources
03-17-2006, 05:52 PM
this can use up alot of space huh?

Works well though... ! good job

/me clicks install

Trigunflame
03-17-2006, 06:42 PM
Your best not to store it in eaccelerator manually as you will get overhead for the unserialize calls for a large template array, storing it in files is the best way.

You should be able to use $_templatedo so that you cache the correct set of action templates, though personally I would create a single global cache file with the ones present in global.php and then a script / action specific cache.

Regarding uncached templates, why not look through the value of $vbulletin->templatecache at the end of script execution.

I have several designs for a potentially better system if you want to investigate.

I havnt actually benchmarked any of the shared memory functions for serialization/unserialization speed but i dont believe the overhead is that great on 5.1+, i know the bug for 4.3.9 was fixed a while back; bug #31332 actually.

Hence the reason why I defaulted to to files at first; although there is stat call overhead which actually has been removed in cvs a while back.

This system definately needs to be further refined though, Ive managing many things at once.. so I still have a lot to do at once.

LBSources
03-17-2006, 08:39 PM
OK, cleaned up my post to make it make more sense.

Basically misc.php (for buddylist) and private.php (for private messages) are broken for me by this script. If I delete the private_36.php and misc_36.php (and so on) from the cache directory, they work OK, but then once cached again, they break once more.

Can I exclude these from being cached somehow?same problem here.. :confused:

Trigunflame
03-17-2006, 09:17 PM
same problem here.. :confused:

Its not broken for me and I run a fairly clean install, so its obviously some modification that you guys have installed; please be more specific and not so vague ;)

What modifications do you have on your forums?

DementedMindz
03-17-2006, 09:24 PM
Its not broken for me and I run a fairly clean install, so its obviously some modification that you guys have installed; please be more specific and not so vague ;)

What modifications do you have on your forums?


i have alot of mods on my forum and it works great... just wondering if you ever plan on having it auto refresh the cache after so many days or doing a auto cache?

LBSources
03-17-2006, 09:27 PM
dont be so vague? lmao

ok .. plenty of hacks installed .. which is affecting or conflicting? i dont know..

may me and mini can compare which hacks we have and nail down a single one or few that we _both_ have installed

LBSources
03-17-2006, 09:29 PM
BTW it doesnt seem to happen all the time.. atleast after deleting the private.php_XX file then it takes i guess some caching before it disappears again

DementedMindz
03-17-2006, 09:29 PM
i noticed alot of the url rewrites mess this up if you have any of them installed

Trigunflame
03-18-2006, 12:12 AM
i noticed alot of the url rewrites mess this up if you have any of them installed

Hmm vbseo for example?

DementedMindz
03-18-2006, 01:54 AM
i tried this vRewrite - SEOed URLs for vBulletin which is hack https://vborg.vbsupport.ru/showthread.php?t=104484 and it really did a number i had to removed that in 5 mins :)

MissKalunji
03-18-2006, 11:00 AM
well i have vbseo and im gon try that one today :)

forte
03-18-2006, 02:44 PM
Is it possible to make a certain template not be cached and just keeps processing the template.

Trigunflame
03-18-2006, 02:55 PM
Is it possible to make a certain template not be cached and just keeps processing the template.

Eh, im gonna talk to scott and see what we can work out. Ideally no modifications such as that should be needed.

MissKalunji
03-19-2006, 03:10 AM
installed working great!

MissKalunji
03-19-2006, 12:07 PM
i notice a bug...i've redone the php edits but after doing the global.php edit

if i try to go in one of my forum i get this error

Warning: Division by zero in /includes/functions.php(4342) : eval()'d code on line 91

this aint compatible with vbseo?

Trigunflame
03-19-2006, 07:55 PM
Exactly the same situation here.

OK, hacks I have installed...

[vB 3.5.4] Template Cache System (Not using due to this problem)
Trigunflame

[vB 3.5.0] Selective Forum Filter 1.0.0
Psionic Vision

[vB 3.5.3] Plugin Accelerator
Trigunflame

vB 3.5.4] Put Adsense Banners in Your Archive
amykhar

[vB 3.5.0] vB3.5 15 Most Recent Searches Made By Our Members
Boofo

[vB 3.5.4] Welcome headers - Improve community registration rates
Ted S

[vB 3.5.4] Extended Signature Limits
Andreas

[vB 3.5.3] Compress Forum Templates
Trigunflame

[vB 3.5.3] VBGooglemap: Google maps on your board
stonyarc

[vB 3.5.2] Easy Template Update
Andreas

[vB 3.5.4] Reported post creates new thread.
Paul M

[vB 3.5.4] Simple pager / sms / instant message system
mini

[vB 3.5.1] vBJournal for vBulletin 3.5
Andreas

[vB 3.5.0 RC2] vB3.5 Local time and date in post and profile
Boofo

[vB 3.5.0] CountryFlag
tnguy3n

[vB 3.5.2] Username Management - Control who can change Usernames plus history
MarcoH64

[vB 3.5.0 RC3] Default Sort Field/Order for Forumdispla
Andreas

[vB 3.5.2] Latest X Paid Subscribers on Forum Home
tamarian

[vB 3.5.1] Google sitemap for the vB Archives. Redirect human and robots
lierduh

[vB 3.5.2] Add Google adsense search to your navbar dropdown
ericgtr

-----------------------

I think that's it as far as active and installed hacks go.


Although I cannot see any of those really play much into private.php or the pop-up buddy list either.

What about disabling all of your plugins, except the Template Cache System and then does the error still occur?

Note: use the disable plugin accelerator link first so that it reverts all files back to use the default vbulletin hook code.

MissKalunji
03-19-2006, 10:23 PM
i notice a bug...i've redone the php edits but after doing the global.php edit

if i try to go in one of my forum i get this error

Warning: Division by zero in /includes/functions.php(4342) : eval()'d code on line 91


this aint compatible with vbseo?


just making sure you seen it

it only happens example when im going http://www.dancehallareaz.com/forum/dancehall-board/

but if i go inside a thread its fine

MissKalunji
03-20-2006, 03:49 AM
redid the php edit for a 3rd time now it works :-/ must be going crazy

MissKalunji
03-20-2006, 05:07 AM
i found the bug....

Its in showthread.php

whenever it gets cached....

It gives the global error

MissKalunji
03-20-2006, 01:48 PM
now its showing my forums all weird...i think its not compatible with gars...

MissKalunji
03-20-2006, 03:12 PM
Can someone get me some kind of support? that really speed up my msg board

MissKalunji
03-21-2006, 03:01 AM
Bump

Kirk Y
03-21-2006, 03:49 AM
Yeah I had to uninstall this and template compressing -- it was messing up my forums.

LBSources
03-21-2006, 10:22 AM
OK, hacks I have installed which match what mini has installed

Template Cache System (Not using due to this problem, but still caches file in the template cache folder)

Put Adsense Banners in Your Archive

Add Google adsense search to your navbar dropdown

-----------------------

that's it as far as active and installed hacks go.

Although I cannot see any of those really play much into private.php or the pop-up buddy list either.[/QUOTE]

Kirk Y
03-21-2006, 03:14 PM
Have you completely uninstalled the Template Cache hack? That means removing the code modifications too.

LBSources
03-21-2006, 03:21 PM
yea, its done now.. but i was referencing the fact that the hack was disabled but still caching.. of course i dont know how it all works so im not upset or anything.. but i was wondering why the users still couldnt see the pm inbox section..

MissKalunji
03-21-2006, 03:25 PM
is there a way to excluse one forum?

i think whats messing it up is gars....u know how gars is integrated in the forum...

Kirk Y
03-21-2006, 03:34 PM
No, I'd say it was the opposite. My GARS wouldn't work until I got rid of Template Caching/Compressing. My templates were messing up; like if I were to edit it, the edit wouldn't show.

tehste
03-21-2006, 03:34 PM
What about caching the languages :)

MissKalunji
03-21-2006, 03:41 PM
No, I'd say it was the opposite. My GARS wouldn't work until I got rid of Template Caching/Compressing. My templates were messing up; like if I were to edit it, the edit wouldn't show.


same thing...it would give me a global.php error...then after if i delete the php file it would show differently.....

unless the error isnt from caching but the compressor hack :surprised:

puertoblack2003
03-21-2006, 03:49 PM
same thing...it would give me a global.php error...then after if i delete the php file it would show differently.....

unless the error isnt from caching but the compressor hack :surprised:

that's the answer i believe i had to remove the compressor hack and everything is alright now , i'm not saying that the compressor is the cause,which i'm not a coder but after further playing around with the the hack unistalling and taking stuff off, and that resolved my problem.

MissKalunji
03-21-2006, 03:50 PM
and the template cache system is working fine now?

puertoblack2003
03-21-2006, 03:53 PM
and the template cache system is working fine now?

yes so far knock on wood....lol:D

MissKalunji
03-21-2006, 04:01 PM
sweet then isnt there a way with the compress system not to compress on template?

puertoblack2003
03-21-2006, 04:17 PM
sweet then isnt there a way with the compress system not to compress on template?

that a questionn for the experience coder...sorry :confused:

MissKalunji
03-21-2006, 04:29 PM
lol thx dear :)

Trigunflame
03-21-2006, 07:48 PM
Just chill out for a while.. trying to get many different things done. Gonna talk with scott about some stuff and probably remake this.

Trigunflame
03-21-2006, 07:48 PM
What about caching the languages :)

That along with many other parts of vbulletin are on the to-do list.

MissKalunji
03-22-2006, 12:43 PM
That along with many other parts of vbulletin are on the to-do list.

im sooooo impatient i cant wait! that really speed up my site to the max!!

Thanks ! you're a great coder!

Zia
03-23-2006, 02:28 AM
:) We will higly appriciate to have an kool update of it.


thnx man.

BamaStangGuy
03-23-2006, 02:30 AM
I have it installed and so far so good.

I have 102 total people on at this time and I cant really see a increase.

Should the server load decrease? Not seeing a big change.

MissKalunji
03-23-2006, 02:32 AM
I have it installed and so far so good.

I have 102 total people on at this time and I cant really see a increase.

Should the server load decrease? Not seeing a big change.

may i ask wich hack you have installed?

vbseo?

gars?

BamaStangGuy
03-23-2006, 02:48 AM
may i ask wich hack you have installed?

vbseo?

gars?

Actually both :)

My Ford Mustang (http://www.mustangevolution.com) site is running it now along with my friends Texas Mustang (http://www.lonestarstangs.com) website.

If I can be of any assistance in making this hack better let me know.

My current dedicated server is stretched then and I am open to anything to keep me on it as long as possible

MissKalunji
03-23-2006, 02:50 AM
Actually both :)

My Ford Mustang (http://www.mustangevolution.com) site is running it now along with my Texas Mustang (http://www.lonestarstangs.com) website.

If I can be of any assistance in making this hack better let me know.

My current dedicated server is stretched then and I am open to anything to keep me on it as long as possible


man are you running the other mod from this coder?

i have both as well and i dont know its giving me bugs :( i so wanna use it!!!


problem : Fatal error: Call to undefined function: print_portal_output() in /home/xxxx/xxxx/xxxx/httpdocs/index.php on line 35


and that one : http://www.mustangevolution.com

articles are blank...or is it just guest cant see?
on your site

BamaStangGuy
03-23-2006, 02:51 AM
Well actually something with GARS is wrong :(

http://www.mustangevolution.com/forum/forum246/

Just shows me a blank page

BamaStangGuy
03-23-2006, 02:52 AM
man are you running the other mod from this coder?

i have both as well and i dont know its giving me bugs :( i so wanna use it!!!


problem : Fatal error: Call to undefined function: print_portal_output() in /home/xxxx/xxxx/xxxx/httpdocs/index.php on line 35

on your site

Where did you get that error at?

No just this hack no others from him.

BamaStangGuy
03-23-2006, 02:55 AM
Well I spoke too soon.

It was working until I opened up a gars forum and then all my pages went blank

MissKalunji
03-23-2006, 02:59 AM
so i guess it is gars...lets test it without gars and see....i notice its as soon as someone goes into gars...that it messes up the script

BamaStangGuy
03-23-2006, 03:28 AM
so i guess it is gars...lets test it without gars and see....i notice its as soon as someone goes into gars...that it messes up the script


That is exactly what happened here

My friends Texas Mustang (http://www.lonestarstangs.com) site is still running it and I have not hit a problem. It uses VBSEO but not gars

BamaStangGuy
03-23-2006, 03:51 AM
That error on the mainpage was my fault and not caused by this script

MissKalunji
03-23-2006, 04:44 AM
That error on the mainpage was my fault and not caused by this script


so everything's fine?

gars vbseo :( man must be something im doing wrong.....

are u using template compressor and pluging accelerator?

BamaStangGuy
03-23-2006, 04:46 AM
so everything's fine?

gars vbseo :( man must be something im doing wrong.....

are u using template compressor and pluging accelerator?
No just this one. It works fine with VBSEO as far as I can tell

MissKalunji
03-23-2006, 04:48 AM
No just this one. It works fine with VBSEO as far as I can tell

alright thanks for your help :banana:

MissKalunji
03-23-2006, 05:10 AM
ahhhhhhh got it working!! (crosses fingers) all i did was cleaning the cache and browsing all over again and everything looks fine yaye!

MissKalunji
03-23-2006, 10:57 AM
can someone tell me how i can create a cron job to clean the cache hourly / 2 hours? thanks

KevinL
03-23-2006, 11:50 AM
can someone tell me how i can create a cron job to clean the cache hourly / 2 hours? thanks
That would be great!

This works well with the template compressor but I have to clean the cache otherwise different things on my board double. Like 'Who was online today' I came online after work and there was 2 of them lol I cleaned the cache and everything was fine.

KevinL
03-23-2006, 12:53 PM
That would be great!

This works well with the template compressor but I have to clean the cache otherwise different things on my board double. Like 'Who was online today' I came online after work and there was 2 of them lol I cleaned the cache and everything was fine.
Also if I dont clear the cache every so often my private messages disappear.

ubuntu-geek
03-23-2006, 01:07 PM
Installed.. So far so good..

MissKalunji
03-23-2006, 02:52 PM
exacly why i asked for cron job....i dont know who to ask tho..

DementedMindz
03-24-2006, 10:28 PM
ok i have a question... i was wondering say you have a seo installed and it rewrites urls... it basiclly saves them as html pages thus they dont get cached... is there any way to have this cache both html and php pages? for example if you install this mod DC SEO vB URL Rewrite (https://vborg.vbsupport.ru/showthread.php?t=91324) it shows your forum pages as html is there any way to cache these pages???

MissKalunji
03-24-2006, 10:30 PM
im not coder but what I THINK is

the pages only REWRITE the url...not the actually content of the page...if you get http://domain.com/forum/how-do-i-do.html = points to showthread.php?post something something

the actually page is .php....so it will cache it anyways....

U see what i mean? i could be wrong!

p.s it was compress hack that was bugging cache system

DementedMindz
03-24-2006, 10:33 PM
no i tried that hack that i posted and i had 2 uncached templates thats why i was asking i think if it reads html it wont cache it... only php files it seems

LBSources
03-24-2006, 10:39 PM
exacly why i asked for cron job....i dont know who to ask tho..
thats a work around and members including me could be without PMs for 2 hours? doesnt cut it for me...

as indicated in the install docs the author didnt want to create a template clearing cache for resources issues..

IIRC

Lenny

P.S. i have since uninstalled the hack..

MissKalunji
03-25-2006, 01:32 AM
thats a work around and members including me could be without PMs for 2 hours? doesnt cut it for me...

as indicated in the install docs the author didnt want to create a template clearing cache for resources issues..

IIRC

Lenny

P.S. i have since uninstalled the hack..

Perhaps didnt think about that....but not all of us having that problem

mine is working great now tho.....:banana:

MissKalunji
03-25-2006, 01:34 AM
no i tried that hack that i posted and i had 2 uncached templates thats why i was asking i think if it reads html it wont cache it... only php files it seems


uhmmmmmmm i wouldnt know what to tell you............ :) im using vbseo perhaps it works differently?

KevinL
03-25-2006, 12:37 PM
mine is working great now tho.....:banana:
How did you get it working?

I had to shut both off. :(

dannyrulez
03-25-2006, 01:26 PM
Hi,

After some minutes of do a "Clean Template Cache" I notice that when i try to change my Avatar this appear (All the others members see this too):

http://img212.imageshack.us/img212/1636/templatecacheproblem5go.th.jpg (http://img212.imageshack.us/my.php?image=templatecacheproblem5go.jpg)

Then I do another "Clean Template Cache" and everytimes is fine for a couple of minutes.

(profile.php is not the only one giving errors, the others file do the same but not at the same time)

MissKalunji
03-25-2006, 01:45 PM
How did you get it working?

I had to shut both off. :(

well first Compressed hack was messing with it after that i disabled it

and recache :) it was working fine

only gars has a little bug.....

Bulent Tekcan
03-25-2006, 07:41 PM
Is this plugin work with APC cache together ?

MissKalunji
03-25-2006, 09:27 PM
Is this plugin work with APC cache together ?


apc cache?

DementedMindz
03-25-2006, 11:50 PM
apc cache?

im thinking he means alternative php cache which is a PECL extension... :confused:

MissKalunji
03-26-2006, 01:43 AM
im thinking he means alternative php cache which is a PECL extension... :confused:


oh *clueless*

Trigunflame
03-26-2006, 01:44 AM
I havnt even attempted to read through all the replies, as I had to take a break from vbulletin for a few days.. will try to get back to working on all of this stuff asap..

MissKalunji
03-26-2006, 01:49 AM
I havnt even attempted to read through all the replies, as I had to take a break from vbulletin for a few days.. will try to get back to working on all of this stuff asap..

yaye life savor! will you marry me? lol just joking!

Bulent Tekcan
03-26-2006, 06:57 AM
Yes...APC install details is here http://www.vbulletin.com/forum/showthread.php?t=165367 (http://pecl.php.net/package/APC) And many big boards use them.

The Realist
03-28-2006, 02:39 PM
Getting a few problems when this hack is enabled. The main one is a database error as follows:


Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE adminutil SET text = '1143563640' WHERE title = 'datastorelock' AND text < '1143563625';

MySQL Error :
Error Number :
Date : Tuesday, March 28th 2006 @ 05:34:00 PM
Script : http://www.tech-tronix.com/search.php?do=getnew
Referrer : http://www.tech-tronix.com/
IP Address :
Username : Realist
Classname : vb_database


When I refresh the screen its ok, but when I 1st view a new post this DB error shows up.

Any ideas before I remove this for good.

Also,

It does not cache some of my templates as well.

Cky47
03-28-2006, 08:22 PM
I installed all three of his hacks, but I cant figure out what is going on with my sites speed now. It seems liek after I installed them, now a day later, things are slower instead. Users say that they cant tell much of a difference, but I definately can.

Can someone tell me if my pages are loading slow? That or tell me wahts going on?

My site is www.boardingscene.com

I am thinking it could be my hosting too, because I am running a cheap godaddy.com plan. All I know is I need the load times to be as low as possible, because I am buying VbSeo soon.

CrashfAB
03-28-2006, 10:09 PM
Quick question. The other 2 plugins are for version 3.5.3 and this one is for 3.5.4 So its ok to run the other too on 3.5.4 ? Sorry for the dumb question I just don't wanna screw my BBS up...

Thanks..

The Realist
03-31-2006, 03:55 PM
Removed due to DB errors.

MissKalunji
03-31-2006, 03:58 PM
Removed due to DB errors.

do you have the template compressor installed?

The Realist
03-31-2006, 04:08 PM
Nope.

Have VBSEO.

MissKalunji
03-31-2006, 04:10 PM
plugin accelerator? i know i had a couple problems as soon as i disabled compressor its working fine now....with vbseo

well sorry :( i wish i could help you more that pluging is really worth it!

PabloAM
04-01-2006, 12:06 PM
GARS isn?t compatibiliti with cache system :(

MissKalunji
04-01-2006, 12:27 PM
GARS isn?t compatibiliti with cache system :(

yeah it does but you have to tweek it a lot....its kind of annoying

MissKalunji
04-01-2006, 08:38 PM
Please tell me: WTH is GARS ? I have no clue of its meaning ;) -Mike


it means geek article something

its for articles :P

thevbgeek.com

KevinL
04-08-2006, 04:15 PM
Does anyone know yet how to write a cron job for this?

e7lew
04-09-2006, 02:31 AM
would it be possible to empty the cache directory automaticly ?

MissKalunji
04-09-2006, 02:32 AM
yes with cron job....

but i realise it would be stupid the whole point of the cache...is to lower the mysql demand...so it would take the template from php instead in the database

Living in music
04-10-2006, 03:52 AM
i'll test it ;) clicked install button !

KevinL
04-16-2006, 09:49 PM
My pm system is still acting wonky.

vasudeva
04-22-2006, 11:38 AM
Any idea how this would compare to the Plugin Based Template Cache that came out last week?

https://vborg.vbsupport.ru/showthread.php?t=113002

MissKalunji
04-22-2006, 11:40 AM
Well its more stable :) thats it and made differently no php edit....i used to us this one and it was buggy so i switched over to the pluging base one

DementedMindz
04-22-2006, 01:51 PM
Well its more stable :) thats it and made differently no php edit....i used to us this one and it was buggy so i switched over to the pluging base one


same here i switched too and the other one seems way faster let alone much easier to install...

TECK
04-28-2006, 09:45 PM
Nice job. Installed. :)

Connector
04-29-2006, 12:33 AM
Installing. :) (http://www.club2share.com/forums/)

BamaStangGuy
04-30-2006, 07:11 AM
Well its more stable :) thats it and made differently no php edit....i used to us this one and it was buggy so i switched over to the pluging base one
Same here. I tried this one but it conflicted with GARS. The other one in that link does not.

sickboy6ths
05-01-2006, 07:03 AM
Nice Job... Installed it and it seems faster already... let's see what it does in the future...

ps.. that auto-clean cache stuff after making template changes etc... sounds like a good feature :))

DementedMindz
05-01-2006, 10:22 AM
i dont think you will get that anytime soon sickboy

WritersBeat
05-05-2006, 05:46 PM
This hack messes up alot of things. It repeats things at some files. I wouldn't call it that safe.

WritersBeat
05-05-2006, 09:32 PM
Can someone help me uninstall this?

I'm having a hard time trying to

MissKalunji
05-05-2006, 10:52 PM
Can someone help me uninstall this?

I'm having a hard time trying to

Just undo the file edit and uninstall plugin and erase the folder template or whateva its called ....thats it

PennylessZ28
05-17-2006, 12:13 AM
I uninstalled this one in favor of: https://vborg.vbsupport.ru/showthread.php?t=113002

This one sucks and does cause some problems. IMO

rmxs
05-19-2006, 06:23 PM
Unistaled because my site its more slow now :(

rmxs
05-19-2006, 07:19 PM
Instaled :)

DementedMindz
05-19-2006, 07:26 PM
Instaled :)

personally i think you should use the plugin based template cache

almqdad
05-22-2006, 12:35 PM
Hello

I have unistalled the plugin but it still writes to template_cache directory

how come

what I am suppost to do to stop this

thanks

DementedMindz
05-22-2006, 01:23 PM
did you remove the file edits ? do that and remove the template cache directory and all should be fine... and then go install the plugin based cache it works alot better :)

Zia
05-29-2006, 08:04 AM
what if theres no "php caching" utility doesnt exists in the host?

if any one use both of this caching system
This one & plugin-base template caching system what will be result?

nymyth
06-13-2006, 04:30 PM
so far so good.....loading nicely.....

Peace

GrCh_Jeff
07-04-2006, 02:37 PM
I think it's too much work for people that do a lot of template edits because you constantly have to clear the cache.I am uninstalling for now.Nice hack but my board has been wacky ever since I installed this and the template compressor.

Wildthinks
07-08-2006, 07:31 AM
Hi,

i using GAL, VBseo 3RC3 and got a error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 184320 bytes) in ....forum/includes/functions_editor.php(514) : eval()'d code on line 42

i switch php.ini error on because i'v got a blank site in thread... index.php and forum.php are displayed, but threads self are blank...
Any hints?
Thank you
:cross-eyed:

DementedMindz
07-08-2006, 11:54 AM
Hi,

i using GAL, VBseo 3RC3 and got a error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 184320 bytes) in ....forum/includes/functions_editor.php(514) : eval()'d code on line 42

i switch php.ini error on because i'v got a blank site in thread... index.php and forum.php are displayed, but threads self are blank...
Any hints?
Thank you
:cross-eyed:


remove it since its no longer supported and use the plugin based template cache

Wildthinks
07-08-2006, 04:12 PM
remove it since its no longer supported and use the plugin based template cache


confused... where can i find it ? OR what you mean?

Wildthinks

DementedMindz
07-08-2006, 04:46 PM
there search is your friend :) https://vborg.vbsupport.ru/showthread.php?t=113002&highlight=cache

Wildthinks
07-08-2006, 06:13 PM
Thanks...found installed works fine...

Wildthinks

Zia
10-05-2006, 02:52 AM
wondering..any one using it with vb3.6 ?
does it works with 3.6.2 ?

imported_infitech
10-28-2006, 04:10 PM
i have completely removed this mod and all my other mods as a direct result of the plugin accelerator messing up my files.... i completely removed all mods and reverted - overwrote all my php files back to the default vbulletin files..... these three mods have to be the most difficult mods of all VBulletin historty to deal with. It seems that regardless of the fact that i have uninstalled this modification - it still wants to mess with me.... I am making template changes and they are not going through because for some reason my admincp still thinks i need to clear my template cache in order for the template changes to be finalized..... please tell me how i can fix this..... maybe tell me how im going to get rid of these three mods once and for all.

imported_infitech
10-28-2006, 04:13 PM
do you have a way that i can uninstall all 3 of these program's? I just rebuilt my entire site, and still have a these 3 showing in my software......I tried to undo them in the reverse order, but they aren't totaly gone.
i can see im not the only one

Snake
12-21-2006, 08:08 PM
Will this ever work on 3.6.4?

alfaowner
01-01-2007, 11:38 AM
I had to unisnstall as it was not updating very well the new pages/changes

maxicep
02-02-2007, 03:05 PM
take an error on editing template on AdminCp. but working cache system.
can you upgrade for 3.6.x

Xplorer4x4
02-03-2007, 06:43 AM
Will this ever work on 3.6.4?

This works fine on 3.6.4 for me:confused:

It would be nice to see a stat out put at the bottom of the page like Hellcat's Mod.

RichieBoy67
02-05-2007, 03:13 PM
I had problems with Photoplog too and I had to remove it... Seemed to work though..

drakes
02-13-2007, 12:12 AM
This works fine on 3.6.4 for me:confused:

It would be nice to see a stat out put at the bottom of the page like Hellcat's Mod.

It work fine for 3.6.4 but Why i install vbshout 2.0 so erro.
Cyb-Forum Statics *2.

Dorign
08-15-2007, 03:12 AM
Sometimes "modify signature" and PM boxes (text to send) disappear until I clear the cache. Like, the toolbar (with font buttons and smilies and such, as well as the message field).

Dorign
08-16-2007, 10:18 PM
Er, anyone know how to fix this?

Dorign
08-17-2007, 10:42 PM
This is a useful mod but if this problem keeps up, it won't be worth keeping as I'll have to clear the cache two or three times a week.

Dorign
08-31-2007, 10:10 PM
Uninstalled.

rob30UK
09-27-2007, 06:55 PM
sorry to drag up an old(ish) thread.... but will this work under 3.6.8?

shokmuzik.com
10-09-2007, 11:57 PM
Yes, it works for 3.6.8, but it has problems with some other hacks using plugins. I think mostly the plugins run 2 or more times and you see the hack twice or more. You can fix this with deleting the files from the templates_cache folder and reloading, for some hacks you have to deactivate the plugins/add-ons before reloading to get them work.


vBulletin default (can be fixed easy)

private.php?do=newpm (pm box disapears)
showthread.php (getting blank page)

They sometimes disappear after cleaning the template_cache folder and reloading. Just delete the 2 files from your template_cache folder and load a thread and private.php?do=newpm again and it works again :P
There are hundreds of add-ons/plugins u can fix on this method (ex. vbseo).


Here some bugs/problems I found out you can't fix with this method:

100% Incompatible:

Count of unread posts in the welcome box
GTMember List Online Status
GTUserCP - Enhanced USERCP Interface + USERCP Menu


200% Incompatible (these making other plugins incompatible too):

QUICKMODERATION: Moderation queue info on Forums

BigJimTheLug
10-10-2007, 06:13 AM
Installed on vb 3.6.8 with no problems.

BigJimTheLug
10-17-2007, 06:52 PM
I have a problem with avatars and private messages.

Is there any method to make this 100% compatible with vb 3.6.8 and higher?

Thanks.

Either way, this is nice.

BigJimTheLug
10-21-2007, 01:04 AM
Any updates to this?

shokmuzik.com
10-31-2007, 05:26 PM
One more 100% incompatible Mod:

Zoints Thread Tags - GREAT for SEO

shokmuzik.com
11-02-2007, 01:45 PM
One more 100% incompatible Mod:

Zoints Thread Tags - GREAT for SEO


My fault this is compatible but to get it working you have to:
Activate the add-on, put "Show list of tags on Thread display" and "Show list of tags on Forum display" in admincp to NO. Now delete showthread.php and forumdisplay from your template_cache folder, and reload the 2 files in your browser. Activate the options in the mod as you like it. DONE!

IrPr
01-16-2008, 11:34 PM
Wassup with this mod? aint be fixed?

g9g6.com
05-21-2008, 05:01 AM
thank you

mosz
07-09-2008, 11:20 PM
need update :(

Wordplay
11-17-2008, 07:41 AM
is it worth using this on 3.8 or will it not have an effect?

MissKalunji
11-22-2008, 10:24 PM
i don't think so. It never worked properly on 3.6 nor 3.7 so i wouldn't test it on 3.8 if i was you

Nadeemjp
04-22-2009, 09:20 AM
where can i get the 3.8.2 version of this hack?

kyrenator
09-21-2009, 06:10 PM
does this work with vb 3.8?

MissKalunji
09-21-2009, 07:10 PM
No it doesn't