I am using VIEW module to create a page which loads data from database table.

Seems this view page is doing caching because whenever I add a new record in this table, it doesn't show on view page immediately after refresh.

Rather I have to clear cache from the site > performance section and then I can see new entry on the view page.

Can anyone advise what should I do to avoid this?

Comments

pixelsweatshop’s picture

Go to your view and under advanced, change the caching settings to "none".

webdevfreak’s picture

Thanks for the reply.

I have already done this but no effect.

There must be something else I am not sure but this is strange.

pixelsweatshop’s picture

whenever I add a new record in this table

Does this mean this is a custom table not create/maintained by drupal?

webdevfreak’s picture

Yes a custom table.

I have views.inc to define the table and its fields etc to render on view page.

Thanks

pixelsweatshop’s picture

Sorry, if it's outside drupal, I won't be able to help. Try drupal stack exchange. You will get more eyes on there.

webdevfreak’s picture

Thanks

webdevfreak’s picture

I got the solution...

Go to 'admin/structure/views/view/myview_name'

Look for CACHING under 'Caching:' heading and set it to NONE.

pixelsweatshop’s picture

Ummm. That is exactly the answer I have you in the first place.

webdevfreak’s picture

You are right.

I was looking at VIEWS settings and not the actual view.

Thanks a lot.