This module is awesome, on my website as soon as a page cache is warm the generation of the page is only 130ms with 17MB.
But before making the cache warm I need to refresh the page several times.

Is there any way to warm cache of the whole site ?

And I dont' understand how long this cache will be usable. What actions clear all those caches ?

Comments

fabianx’s picture

Status: Active » Fixed

There is no cache clearing at all - only if you manually clear caches, will it be emptied (drush cc all, drush updb or running update.php or clearing caches via the web interface).

The reason is that a special hash is generated whenever the important properties of your nodes change, which include the last modified time of the hash.

To illustrate that a good example is the implementation on drupal.org itself:

http://cgit.drupalcode.org/drupalorg/tree/drupalorg/drupalorg.module?id=...

here the user viewing the comment is included in the comments hash that determines the cache id.

This is needed in 7.x-1.x and current 7.x-2.x until proper cache tags are supported, then entity references and other embedded entities will automatically start to work. (hopefully soon)

As for the warm cache:

- There are certain modules that can crawl your site to populate the caches.

You could also put a list of URLs in a txt file and run a wget command after clearing caches.

I hope that helps.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

btopro’s picture

I know this is closed but to OPs cache warming here are two I commonly use for that part
https://www.drupal.org/project/drush_ecl (purely caching the objects, not the rendered output)
https://www.drupal.org/project/httprl_spider (caching objects, then requesting the page via annonymous http call)

fabianx’s picture

Thanks for the comments, BTO!