for Web Authors and Webmasters This is an informational document. Although technical in nature, it attempts to make the concepts involved understandable and applicable in real-world situations. Because of this, some aspects of the material are simplified or omitted, for the sake of clarity. If you are interested in the minutia of the subject, please explore the References and Further Information a
Cache_Lite は未だに PHP4 なコードであんまりだし, Zend_Cache は依存関係がめんどくさそうなので, 外部ライブラリに依存しないものを作ってみました. Github Openpear 使い方 Cache_Casual オブジェクトは ArrayAccess インターフェイスを実装しており, 連想配列のように操作することができるので, かなりカジュアルだと思います. カスタムキャッシュコンテナ 上記の例では, キャッシュコンテナとしてファイルを利用しています. キャッシュコンテナは Dependency Injection (依存性の注入) により Cache_Casual オブジェクトに差し込むことができるので, Cache_Casual_ContainerAbstract クラスを継承し, Cache_Casual_ContainerInterface インターフ
Services Platform.sh for Symfony Best platform to deploy Symfony apps SymfonyInsight Automatic quality checks for your apps Symfony Certification Prove your knowledge and boost your career SensioLabs Professional services to help you with Symfony Blackfire Profile and monitor performance of your apps
ある程度のアクセスがある場合や、キャッシュを多用していると、symfony ccを実行するとかなり時間がかかることがあります。 そういう場合は、アプリケーションのsetting.ymlでcheck_lockをonにしておくと、キャッシュクリア中は全てのアクセスをunavailable.phpにリダイレクトしてくれるので、例えば「メンテナンス中です」のような表示にしておくことができます。 やっていることはsymfony cc時にロックファイルを作成しているだけです。 なので、万が一symfony ccが終わったのにunavailable.phpにリダイレクトされる場合は作成されているロックファイルを削除すればOKです。 また、このロックファイルの存在を知っていれば、自前タスクなどでアプリケーション全体へのアクセスを禁止したい場合などにもロックファイルを作成さえすれば同じような処理を実装するこ
Services Platform.sh for Symfony Best platform to deploy Symfony apps SymfonyInsight Automatic quality checks for your apps Symfony Certification Prove your knowledge and boost your career SensioLabs Professional services to help you with Symfony Blackfire Profile and monitor performance of your apps
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く