vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Plugin Based Template Cache (https://vborg.vbsupport.ru/showthread.php?t=113002)

orban 05-27-2006 07:55 AM

Thank you Kihon Kata!

Quote:

Originally Posted by Zia
nop it does'nt remove all the *************.php files in */forum/templates
we had to del all the files manually..we un-install this & re-install again for cache again...after template edit.

Can you check if the plugin "include template_cache.php & clear template cache" in the hook "admin_global" is installed in your installation?

That hook holds the function to clear the templates/ folder if either a new template is added or a template is edited.

This works for me and I hope for the other customers in here because if it was an issue I'm sure it would have come up. It's maybe a special problem with your PHP environment. What versions are you running? It's really hard to debug such things over a web forum if you really want it fixed you might need to let somebody on it who knows PHP and all that stuff and can check it over FTP on your installation or something.

Quote:

Originally Posted by Zia
one more point:
to cache all template separately- php acclerator needed to be installed
In our host

so we can cache template separately using this zend optimizer?

As far as I know Zend Optimizer does not cache PHP code, it just optimizes it. So the option to cache templates seperately is probably not recommended for you (I'd only recommend using it when you use a PHP cache like APC/eAccelerator/...

Zia 05-27-2006 08:18 AM

oh..okay then.....

if i send u our php.ini can u understand the situation?

orban 05-27-2006 08:23 AM

A phpinfo() would be enough, I'll try to find something out but can't guarantee anything :(

Zia 05-27-2006 08:50 AM

helo Orban,

PHP Version 4.4.2
Build Date Feb 22 2006 18:00:44
Configure Command:'./configure' '--prefix=/usr/local/php4' '--with-pear=/usr/local/lib/php' '--with-pspell' '--with-t1lib' '--with-mime-magic' '--enable-force-cgi-redirect' '--enable-safe-mode' '--enable-versioning' '--with-mysql=/usr/local' '--with-enabled-local-infile' '--with-dbase' '--enable-ftp' '--with-openssl' '--with-imap' '--with-imap-ssl' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-freetype-dir' '--with-jpeg-dir=/usr/local' '--with-zlib' '--enable-libgcc' '--enable-mbstring' '--enable-xslt' '--with-xslt-sablot' '--with-gettext' '--with-curl' '--with-mcrypt' '--with-dom' '--with-dom-xslt' '--with-mhash' '--with-zip' '--with-bz2' '--with-iconv' '--enable-exif' '--enable-bcmath' '--enable-calendar' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-wddx'

Server API : CGI
PHP API : 20020918
PHP Extension: 20020429
Zend Extension : 20050606

Zend Memory Manager : enabled
Registered PHP Streams : php, http, ftp, https, ftps, compress.bzip2, compress.zlib

Optimization Pass 1 enabled
Optimization Pass 2 enabled
Optimization Pass 3 enabled
Optimization Pass 4 enabled
Optimization Pass 9 disabled
Zend Loader enabled

els that if u need any more info..i can give u..admin pass/ftp pass

plz have a look

Thnx man for ur support

Zia 05-27-2006 09:05 AM

zend cache will do the work ?

orban 05-27-2006 10:32 AM

Quote:

Originally Posted by Zia
zend cache will do the work ?

Yes, Zend Cache caches PHP scripts as far as I know.

dutchbb 05-28-2006 03:14 PM

Wel, it seems to be working, but my plugins have no effect anymore. There just gone....

So is disables other hacks, too bad have to uninstall this then..

orban 05-28-2006 03:16 PM

It doesn't disable anything.

What plugins do not work? Can you disable the "Cache Templates Seperatly" option and see if they work?

dutchbb 05-28-2006 03:21 PM

When I disable that the plugins work again yes, however:

Quote:

This option is only recommended if you use a PHP cache like APC/eAccelerator/etc. This can also decrease performance if you're not using a PHP cache.
I do use eAccelerator, so disabling it wouldn't be a good idea?

Besides that it does seem to make the board faster, lower the load and if i'm correct there is a query gone on every page, so nice hack.

orban 05-28-2006 03:34 PM

Let me know with what plugins you have problems. It's just most likely due to the fact that they are not compatible with the "Cache Templates Seperatly" and you can partially fix that by excluding some templates.


All times are GMT. The time now is 09:28 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.01240 seconds
  • Memory Usage 1,741KB
  • 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
  • (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