Hi All.
I am using Google CMS in private mode. Everything works great when I’m developing locally but as soon as I push to Lamda I’m encountering problems with caching.
If I have caching enabled then everything works fine at first glance but the data does not update when the action is closed and opened again.
When I add caching: false - that action won’t be invoked at all by the Google actions console
Here is how it is in my config file:
cms: {
GoogleSheetsCMS: {
spreadsheetId: spreadsheetID,
access: ‘private’,
credentialsFile: ‘./credentials/google-sheets.json’,
sheets: [
{
name: ‘responses’,
type: ‘Responses’,
},
{
name: ‘hours’,
type: ‘ObjectArray’,
range: ‘A:B’,
},
],
caching: false
}
},
The spreadsheetID is defined as a global variable further up the code.
Any ideas what’s going wrong? It’s driving me crazy!