Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By webdevfreak on
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
~
Go to your view and under advanced, change the caching settings to "none".
Re
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.
~
Does this mean this is a custom table not create/maintained by drupal?
Yes a custom table.
Yes a custom table.
I have views.inc to define the table and its fields etc to render on view page.
Thanks
~
Sorry, if it's outside drupal, I won't be able to help. Try drupal stack exchange. You will get more eyes on there.
Thanks
Thanks
re
I got the solution...
Go to 'admin/structure/views/view/myview_name'
Look for CACHING under 'Caching:' heading and set it to NONE.
~
Ummm. That is exactly the answer I have you in the first place.
You are right.
You are right.
I was looking at VIEWS settings and not the actual view.
Thanks a lot.