The XML backend doesn't support views results caching. Even if you enable typical views cache method based on time, cache instance is never created and request for external source (xml file) are execute for every views show.

What is suprise, output cache works fine.

The problem is that the class views_xml_backend_plugin_query_xml() doesn't implement method get_cache_info(). Implementation from it's parent class - views_plugin_query - return FALSE, so CID (cache identifier for single view) never is created.

I'm preparing patch solves this problem. I will put it here.

CommentFileSizeAuthor
#1 views-results-caching-1470098-1.patch830 bytesgdud

Comments

gdud’s picture

Status: Active » Needs review
StatusFileSize
new830 bytes

Here is a patch I promised :-)

gdud’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev
twistor’s picture

Status: Needs review » Fixed
twistor’s picture

Status: Fixed » Patch (to be ported)
twistor’s picture

Status: Patch (to be ported) » Fixed

7.x
http://drupalcode.org/project/views_xml_backend.git/commit/a952329

I don't think exposed filters will work with this, but I haven't tested yet. That's for a separate issue.

Status: Fixed » Closed (fixed)

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