Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

アーカイブの2ページ目以降、検索結果ページのキャッシュを有効化できるように #35

Open
mypacecreator opened this issue Mar 11, 2019 · 3 comments

Comments

@mypacecreator
Copy link
Contributor

投稿数が多い場合や、サイト内検索使用が多い場合、2ページ目以降や検索結果についてもキャッシュ対象にしたいことがあります。

そこで、近々プラグインオプションの設定項目を追加してみようと思っています。

  • sacloud_webaccel_send_cache_header() 中での処理に分岐追加
  • プラグインオプションページにチェックボックス追加
@yamamoto-febc
Copy link
Member

ありがとうございます!
PRをお待ちしております:+1:

@mypacecreator
Copy link
Contributor Author

@yamamoto-febc この件着手してみたんですが、キャッシュパージのために、カテゴリー、タグ、日付などあらゆるアーカイブページに対して何ページ目まであるか調べて、$targetURLs[] に全ての条件の2ページ目以降のURLを放り込む、ということがかなり困難な気がしてきました。。。
自分でissueオープンしておいて恐縮ですが、違うアプローチでなんとかならないか考えた方がよさそうな気がしてきました 💦

@yamamoto-febc
Copy link
Member

確かに実装が面倒だと思います。

ある程度割り切って、2ページ目以降をキャッシュしたい場合は記事更新時にキャッシュ全削除を行うような実装を追加しておいて、ユーザーが管理者ページで動作を選択(既存のURL個別キャッシュ削除、ただし2ページ目以降は対象外 or キャッシュ全削除、2ページ目以降もキャッシュ可能)できるようにした方が良いかもしれません。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants