I have a website running on Drupal 7. I have various blocks that appear throughout the site and contain:
- PHP code
- Views
Under Configuration –> Development both Caching options are unchecked:
- Cache pages for anonymous users is unchecked
- Cache blocks is unchecked
All the blocks that contain Views are not cached for authenticated and anonymous users (i.e. Every page request produces new results in the block). All the blocks that contain PHP code are cached for everyone (i.e Every page refresh uses the cached data and doesn;t execute the PHP code). The only way for these blocks to rerun the PHP code is Clear the Page Cache.
My questions are the following:
Why are the blocks with the PHP code loaded from the Cache when the Caching options in the Configuration are unchecked?
What is the most efficient way to disable cashing of all blocks?
*Please note that I don’t want to use Javascript/jQuery/Ajax instead of PHP.