vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Template Cache System (https://vborg.vbsupport.ru/showthread.php?t=110144)

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

Quote:

Originally Posted by vampireus
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

Quote:

Originally Posted by DementedMindz
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

Quote:

Originally Posted by DementedMindz
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:
PHP 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

Quote:

Originally Posted by DementedMindz
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.


All times are GMT. The time now is 03:17 PM.

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.01234 seconds
  • Memory Usage 1,740KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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