💾 Archived View for chirale.org › 2008-09-30_194.gmi captured on 2024-08-24 at 23:53:27. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-12)

-=-=-=-=-=-=-

Drupal page caching

Requisites:

Tested on

Drupal page caching can be achieved using some contrib modules. I choose Boost, available for drupal x and x (only a x patched version is now available).

Boost

According to installation instructions, query pages are not cached. Since default pagination rely on query (e.g. frontpage?page=2 to display the third page of home page view “frontpage”) you have to found a way to “clean” that URLs if you want to cache them.

A module named Clean Pagination (Drupal x only) do the magic (result for example above: frontpage/2) and now even specified pages can be cached.

Clean Pagination

To test the module, open two different browser or session as anonymous user. Then, visit your paged page (e.g. frontpage/2) with the first browser (A), then go to the same page as anonymous with the other (B). (B) version of the page now should display an HTML comment inserted by Boost like:

\<!– Page cached by Boost at 2008-09-30 09:59:14, expires at 2008-09-30 10:59:14 –\>

Note: remember that (A) should not show any HTML comment on first visit. The “main” page cache (e.g. frontpage) if it was cached too before clean pagination will display the original pager instead the clean one until page cache expire (customizable on admin/settings/performance).

https://web.archive.org/web/20080930000000*/http://drupal.org/project/boost

https://web.archive.org/web/20080930000000*/http://drupal.org/project/cleanpager