Author:
nickdunn
Version:
0.4
Released:
18 February 2011
Category:
Other

Browse

Description

Disclaimer

This is relatively untested. Use with caution. If you hit problems, please try and debug and send patches via Github. There are a couple of edge cases that I have yet to diagnose whereby a cache "miss" means no XML is returned for that page load. Only spotted it a few times ever, so certainly an edge case.

Description

Some datasources simply execute a lot of database queries, and if you run a busy website then certain DSs may be a performance hit. Presently you have several options:

  • reduce the number of fields and entries your DS is querying
  • use the Cachelite extension to cache the entire rendered HTML output of pages (useful to survive the Digg-effect)

However sometimes neither of these are viable. Perhaps you really need all of that data in your XML, or perhaps you have a "Logged in as {user}" notice in the header that means you can't cache the HTML output for all users.

This extension bundles a CacheableDatasource class from which your data sources can extend.

Repository

http://github.com/nickdunn/cacheabledatasource

Discuss this Extension

Compatibility

2.7.10 Unsure
2.7.9 Unsure
2.7.8 Unsure
2.7.7 Unsure
2.7.6 Unsure
2.7.5 Unsure
2.7.4 Unsure
2.7.3 Unsure
2.7.2 Unsure
2.7.1 Unsure
2.7.0 Unsure
2.6.11 Unsure
2.6.10 Unsure
2.6.9 Unsure
2.6.8 Unsure
2.6.7 Unsure
2.6.6 Unsure
2.6.5 Unsure
2.6.4 Unsure
2.5.4 Unsure

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details