hypweb.net
XOOPSマニア  最新情報のRSS(サイト全体)
[ 自宅サーバーWebRing |ID=54 前後5表示乱移動サイト一覧 ]

12年5月23日(Wed) 17時11分
TOP » xpWiki::Dev » xpWiki開発日記 » 2008-03-25

Tue 25 Mar 2008
 

Ver 3.71.5 - 8 (添付ファイル一覧高速化とマルチラインブロックプラグインの調整など) anchor.png Edit

Page Top

添付ファイル一覧表示の高速化 anchor.png Edit

ファイルサイズが大きいファイルを多数添付したページで、添付ファイル一覧を表示するのに、時間が掛かる場合がありました。以前から気になっていたのですが、二度目の表示は、システムキャッシュが効いているらしく、さほど時間が掛からず原因が分からないままでした。

今回、やっとその原因が分かりました。それは、getimagesize() 関数でした。

そのファイルがイメージファイルかどうかを、getimagesize() で判定しているのですが、イメージ以外のファイルの場合、どうやら、そのファイルをすべて読み込んで検査するらしく、システムファイルキャッシュが効いていないファイルでサイズが大きいとそれだけ時間が掛かってしまっていました。

そこで、getimagesize() の結果を、添付ファイル情報ファイルに保存するようにして、表示の高速化をしました。

Page Top

マルチラインブロックプラグインの調整 anchor.png Edit

マルチライン型のブロックプラグインの動作で、不整合な部分がありましたので、その調整を行いました。

  • #comment など、ページ内容を書き換えるプラグインで、内容を挿入する箇所の判定で、ブロックプラグインのマルチライン引数の部分が考慮されていなかったので、その修正をした。
  • マルチライン引数を Wiki レンダリングしない(convert_html を通さない)プラグインを、pukiwiki.ini.php で指定するようにした。
    1
    2
    
    // Multiline PRE plugins
    $this->root->multiline_pre_plugins = array('pre', 'code');
  • マルチライン引数の部分は、段落編集ができないので、編集アイコンを表示しないようにした。
    • マルチライン引数を convert_html() するには、convet_html_multiline() を使用する。
Page Top

その他 anchor.png Edit

  • 導入されているプラグイン一覧を表示する #pluginlist を新規追加した。
    +  #pluginlist の例
    #pluginlist

    Block plugins

    • #addline
    • #ajaxtree
    • #amazon
    • #aname
    • #areaedit
    • #article
    • #attach
    • #autolink
    • #aws
    • #back
    • #block
    • #blogs
    • #boxdate
    • #br
    • #bugtrack
    • #bugtrack_list
    • #calendar
    • #calendar2
    • #calendar9
    • #calendar_edit
    • #calendar_read
    • #calendar_viewer
    • #capture
    • #chat
    • #clear
    • #code
    • #comment
    • #contents
    • #counter
    • #csv2newpage
    • #easylogin
    • #endregion
    • #exif
    • #exifshowcase
    • #fckxpwikiver
    • #footnotes
    • #freeze
    • #fusen
    • #gimage
    • #googlemaps2
    • #googlemaps2_draw
    • #googlemaps2_icon
    • #googlemaps2_insertmarker
    • #googlemaps2_mark
    • #hotwords
    • #hr
    • #html
    • #hypcommonver
    • #iframe
    • #img
    • #include
    • #includesubmenu
    • #insert
    • #isbn
    • #jsmath
    • #keyword
    • #lookup
    • #ls
    • #ls2
    • #lsx
    • #makepage
    • #memo
    • #menu
    • #moblog
    • #navi
    • #netvideos
    • #newpage
    • #nicovideo
    • #noattach
    • #noautolink
    • #nocontents
    • #nofollow
    • #noheader
    • #nopagecomment
    • #norelated
    • #nosubnote
    • #online
    • #page_aliases
    • #paint
    • #pcomment
    • #ping
    • #pluginlist
    • #popular
    • #pre
    • #random
    • #recent
    • #redirect
    • #ref
    • #region
    • #related
    • #relatedview
    • #renderattach
    • #search
    • #server
    • #setlang
    • #setlinebreak
    • #showrss
    • #siteimage
    • #skin_changer
    • #stationary
    • #subnote
    • #tag
    • #tdiary
    • #temp
    • #topicpath
    • #tracker
    • #tracker_list
    • #ucomedit
    • #urlbookmark
    • #version
    • #versionlist
    • #vote
    • #webthumbnail
    • #xmlrpc
    • #xoopsadmin
    • #xoopsblock
    • #xpwikiver
    • #yahoo
    • #youtube_v
    • #ywords

    Inline plugins

    • &addline;
    • &age;
    • &amazon;
    • &aname;
    • &areaedit;
    • &author;
    • &bitly;
    • &br;
    • &build_js;
    • &calendar2;
    • &color;
    • &count;
    • &counter;
    • &easylogin;
    • &edit;
    • &exif;
    • &exifshowcase;
    • &fckxpwikiver;
    • &font;
    • &googlemaps2;
    • &googlemaps2_draw;
    • &googlemaps2_icon;
    • &googlemaps2_mark;
    • &hypcommonver;
    • &iframe;
    • &isbn;
    • &jsmath;
    • &lastmod;
    • &netvideos;
    • &new;
    • &nicovideo;
    • &online;
    • &page_aliases;
    • &page_comments;
    • &pagepopup;
    • &ref;
    • &rsslink;
    • &ruby;
    • &setlang;
    • &siteimage;
    • &size;
    • &skin_changer;
    • &skype;
    • &stationary;
    • ⊂
    • &subnote;
    • ⊃
    • &tag;
    • &topicpath;
    • &twitter;
    • &version;
    • &webthumbnail;
    • &xpwikiver;

    Command plugins

    • add
    • addline
    • ajaxtree
    • amazon
    • api
    • areaedit
    • article
    • attach
    • aws
    • backup
    • bugtrack
    • calendar2
    • calendar9
    • calendar_viewer
    • code
    • comment
    • conf
    • csv2newpage
    • dbsync
    • deldel
    • deleted
    • diff
    • dump
    • edit
    • filelist
    • freeze
    • fusen
    • googlemaps2
    • googlemaps2_insertmarker
    • import
    • insert
    • interwiki
    • links
    • list
    • lookup
    • ls2
    • lsx
    • makepage
    • map
    • md5
    • memo
    • menu
    • moblog
    • newpage
    • page_aliases
    • paint
    • pcomment
    • pginfo
    • pluginlist
    • random
    • read
    • recentchanges
    • redirect
    • ref
    • referer
    • related
    • rename
    • replacer
    • rss
    • rss10
    • search
    • showrss
    • sitemap
    • source
    • stationary
    • tag
    • tb
    • template
    • timestamp
    • touchgraph
    • tracker
    • tracker_list
    • ucomedit
    • unfreeze
    • update_entities
    • urlbookmark
    • user_pref
    • versionlist
    • vote
    • xmlrpc
    • yetlist
  • #code プラグインpukiwiki 定義のプラグイン一覧を更新した。
Page Top

CVS 更新内容 anchor.png Edit

+  今回の更新分
  • 2008-03-25 14:16 nao-pon
    • * xoops_version.php (1.323):
      • Version 3.71.8
  • 2008-03-25 14:16 nao-pon
    • * plugin/pluginlist.inc.php (1.2):
      • New plugin that is show plugin list.
  • 2008-03-25 13:54 nao-pon
    • * plugin/noheader.inc.php (1.2):
      • The bug that becomes effective only because it confirms the plug-in is corrected.
  • 2008-03-25 13:38 nao-pon
    • * xoops_version.php (1.322):
      • Version 3.71.7
  • 2008-03-25 13:37 nao-pon
    • * plugin/code/line.pukiwiki.php (1.2):
      • A pluginlist updated.
  • 2008-03-25 12:03 nao-pon
    • * xoops_version.php (1.321):
      • Version 3.71.6
  • 2008-03-25 12:03 nao-pon
    • * plugin/pluginlist.inc.php (1.1):
      • A pluginlist updated.
  • 2008-03-25 11:20 nao-pon
    • * plugin/block.inc.php (1.4), plugin/capture.inc.php (1.2), plugin/region.inc.php (1.9), class/convert_html.php (1.26), class/func/pukiwiki_func.php (1.157), class/func/xpwiki_func.php (1.158):
      • Added function "func->convert_html_multiline($body)", this is convert_html for mulutiline block plugin. And use it.
  • 2008-03-25 08:59 nao-pon
    • * plugin/urlbookmark.inc.php (1.5):
      • Use "func->escape_multiline_pre" on page update.
  • 2008-03-25 08:53 nao-pon
    • * plugin/googlemaps2_insertmarker.inc.php (1.3):
      • Use "func->escape_multiline_pre" on page update.
  • 2008-03-25 08:50 nao-pon
    • * plugin/article.inc.php (1.7):
      • Use "func->escape_multiline_pre" on page update.
  • 2008-03-24 18:32 nao-pon
    • * class/func/xpwiki_func.php (1.157):
      • Fixed Notice error.
  • 2008-03-24 18:31 nao-pon
    • * plugin/pcomment.inc.php (1.12):
      • Use "func->escape_multiline_pre" on page update.
  • 2008-03-24 18:25 nao-pon
    • * plugin/comment.inc.php (1.6):
      • Use "func->escape_multiline_pre" on page update.
  • 2008-03-24 18:22 nao-pon
    • * plugin/vote.inc.php (1.6):
      • Use "func->escape_multiline_pre" on page update.
  • 2008-03-24 18:21 nao-pon
    • * ini/pukiwiki.ini.php (1.71):
      • Added config.
        // Multiline PRE plugins
        $this->root->multiline_pre_plugins = array('pre', 'code');
  • 2008-03-24 18:10 nao-pon
    • * plugin/ref.inc.php (1.26):
      • Speed-up of attach file display.
  • 2008-03-24 18:08 nao-pon
    • * include.php (1.11), class/attach.php (1.1), plugin/attach.inc.php (1.37):
      • Speed-up of attaches list. And, the class definition was separated.
  • 2008-03-24 18:05 nao-pon
  • 2008-03-24 18:03 nao-pon
    • * class/func/xpwiki_func.php (1.156):
      • Added functions "escape_multiline_pre (& $src, $enc = TRUE)", "get_attachdbinfo ($id)" and "get_attachstatus ($file)".
Page Top

一行コメント anchor.png Edit




Post a new comment

Subject
guestname
Body
Go to richer form

Front page   Edit Freeze Diff Backup Upload Copy Rename ReloadPrint View   New Page Page list Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom) Powered by xpWiki
Counter: 2716, today: 1, yesterday: 1
Princeps date: 2008-03-25 (Tue) 21:04:31
Last-modified: 2008-03-25 (Tue) 22:45:47 (JST) (1519d) by nao-pon
このページのTopへ
ログイン
ユーザ名:

パスワード:

オートログイン

Basic 認証 | SSLログイン

Register now! | Lost Password?



メインメニュー
付箋機能 (xpwiki)
Fusen(Tag) menu 
Tag Editor
Color: BG:
Name:  Connect line ID:
 
MenuBar (xpwiki)
ブックマーク
Please log in to use it.
[Login]
サイト内 Wiki
☆ 検索 ☆



高度な検索(サイト内)
FireFox検索プラグイン
オンライン状況
合計 52 人がオンライン中 :-)
(xpWiki::Dev : 16 人)

登録ユーザ: 0 & ゲスト: 52

もっと...
サイト情報
管理人

nao-pon
 

登録ユーザ数: 2185


Web Services by Yahoo! JAPAN
楽天ウェブサービスセンター
Amazon.co.jpアソシエイト
現在ページのQRコード
現在ページのQRコード
[携帯対応]
参照元情報