I just installed this great mod, and added my gallerix block with random pictures. I see that this block using ajax load, but the picture is always the same :(
Gallerix:
http://drupal.org/project/gallerix

Thanks!

Comments

superfedya’s picture

same here, and for all other modules with changing content (like shoutbox, quotes) too... so, this module is useless?

ClearXS’s picture

Have no idea, but maybe this adds to the discussion: http://drupal.org/project/ajaxcache

csevb10’s picture

Ajaxify Regions will make a request back to the server to load the block dynamically. If requests to load that block return different content on a regular basis (randomization in php or sql), then you should be good. I'll try and take a look because this is exactly what the module is built to handle. It works for other dynamic content in blocks, so I see no reason it shouldn't work for the other blocks you mention, but I'll install, test, and provide feedback.

csevb10’s picture

Thanks to mikeytown2 for posting this elsewhere. This would make sense. You simply need to configure boost to NOT cache the ajax request responses. See info below. If this _doesn't_ work, then I'll go through and test on my own. If it does work, let me know, and I'll simply add functionality to automatically add the boost configuration. Thanks!

exclude ajaxify path in boost. 3 ways

In boost config

ajaxify_regions/ajax

Or

<?php
$args = arg()
if ($args[0] == 'ajaxify_regions' && args[1] == 'ajax') {
  return FALSE;
}
?>

In module

<?php
/**
* Implementation of hook_boost_is_cacheable().
*/
function ajaxify_regions_boost_is_cacheable($path) {
  // Do not cache if $path is ajaxify_regions/ajax
  if ($path == 'ajaxify_regions/ajax') {
    return FALSE;
  }

  return TRUE;
}
?>
csevb10’s picture

Also, simply check this thread for more info: http://drupal.org/node/897092