I installed the module and activated it, entered my calendar info and saved. Then I went back and changed the number of events to display to 2, as the calendar is going in my footer. I saved, and went back to the page it is on, yet I still have 25 events showing.

CommentFileSizeAuthor
#2 clear-block-cache-2245787-2.patch482 bytesDevin Carlson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

scottsawyer’s picture

I am experiencing the same issue, using 7.x-1.1 stable. No matter what configuration ( no future events, set the limit to any number ), it displays all values.

EDIT: I found something interesting. I set the number of events to 2, and date limit to 1 month ( previously I did not set a date limit, I have about 7 events in this range ), and suddenly the event list displayed in my block is two.

Now here is where things get interesting.

  • I then changed the number of events to 3, leave the date range alone, it still only shows 2 events.
  • Then I remove the date limit, leaving the number of events at 3, but still only shows 2 events.
  • Next, I set a new date range, this time in the distant future ( I checked display future events ), but it still shows 2 events. It should show many events.

More testing and I discovered that by saving the block configuration, then clearing cache seems to make the block apply the configuration changes. I have to clear cache between each change to the configuration. Weird because I am logged in as uid 1, cache is disabled for logged in users, and I am not using any sort of server caching ( memcache or varnish ), so this is unexpected.

At any rate, I think this may need to be addressed, but at least the module is not broken.

Devin Carlson’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Priority: Major » Normal
Status: Active » Needs review
FileSize
482 bytes

We should clear the cache associated with the block that is being saved.

Devin Carlson’s picture

Status: Needs review » Fixed

Tested and committed #2 to Google Calendar Block 7.x-2.x.

  • Devin Carlson committed 2d9c8d7 on 7.x-2.x
    Issue #2245787 by Devin Carlson: Cleared calendar cache when saving...

Status: Fixed » Closed (fixed)

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