I'm using Boost on a site with image galleries created with the Image module (http://drupal.org/project/image) and the gallery pages are not expired when I add a new image to a gallery. I expected that it would automatically work as the galleries are displayed using views.

So am I correct in my assumption, that any views that display image nodes should automatically expire if I add an image? If yes, what could cause the views to not be refreshed?

Comments

mikeytown2’s picture

Enable "Clear all cached views pages associated with a node on insert" & try again. If no go, get the latest dev and turn verbose to 9; it will explain exactly what is going on; recommend doing this on a dev box.

DoctorWho’s picture

Hi,

thank you for you prompt response. The "Clear all cached views pages associated with a node on insert" option is enabled on the site.

I set the logging to 9 on a copy of the site and added one image. The following entries appeared in the log:

I suspect the image module is doing something unexpected with the views, as all other views (not based on images) are expired correctly.

Thank you for your help.

Debug: boost_cache_expire_router()
Following files where flushed:

Input:
Array

      [node] => Array

            [page_callback] => node
            [page_id] => 1619
            [base_dir] => cache/normal/****************

Debug: boost_expire_node()
Node 1619 was flushed resulting in 0 pages being expired from the cache

Debug: _boost_view_insert()
0 Views Searched; 0 of them contain the new node and where thus flushed. As a result of this pages where expired from the boost cache.
mikeytown2’s picture

0 Views Searched - Means none of the views are currently cached by boost; thus there is nothing to expire in this case.